tags:

views:

61

answers:

1

I have turned computer monitor off using this command

SendMessage(f.Handle, WM_SYSCOMMAND, (IntPtr)SC_MONITORPOWER, (IntPtr)(turnOff ? 2 : -1));   

is it possible to hook monitor turning on to prevent it or execute some function?

+1  A: 

See here.

SLaks
it is great answer. I want to know is it possible to prevent switching on of the monitor.
TGadfly