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

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?
 
C

cornedbeef007-groups

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.
 
C

cornedbeef007-groups

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top