Return to site

How to disable monitor

broken image

Static extern bool PostMessage( IntPtr hWnd, uint Msg, Use the system pre-defined MSDN constants that can be used by the SendMessage() function:Ĭopy Code Go back to the root of the problem, and remember that you need a valid HANDLER to accomplish the task.

broken image

So get it using the public Handle property: this.Handleīut what happens when you are developing a *.dll Library or a Console Application, where you don’t have any currently used Windows Form? Where you can't use the keyword this? :)

broken image
broken image

Static extern IntPtr SendMessage( IntPtr hWnd, uint Msg,