is there is any way to turn off the screen programatically?

  • Thread starter Thread starter eharshosh
  • Start date Start date
E

eharshosh

Hi,
i'm developing a software for windows xp that will have an option to
turn off the monitor
i found one way to do that by changing the refresh rate of the monitor
to unsupported refresh rate,
but this way is not good because some monitor supports this mode and
some not.
i sure that there is another way because in windows there is an option
to turn off the monitor after x minutes,
so what is the API for this operation?
 
Hi,
 i'm developing a software for windows xp that will have an option to
turn off the monitor
i found one way to do that by changing the refresh rate of the monitor
to unsupported refresh rate,
but this way is not good because some monitor supports this mode and
some not.
i sure that there is another way because in windows there is an option
to turn off the monitor after x minutes,
so what is the API for this operation?

In Google, this string
http://www.google.com.au/search?hl=en&q=winxp+api+turn+off+monitor&btnG=Google+Search&meta=
finds this result.
http://www.codeproject.com/KB/cs/Monitor_management_guide.aspx


Good luck.
 
Thanks a lot, did the job!
-- Weird, i tried to search it in google and all i got is "shut down
monitoring" programs... when i changed the word 'monitor' with
'screen' nothing found...
anyway, thanks again.- Hide quoted text -

- Show quoted text -

Glad you got it working.
 
Back
Top