d_hetz
October 20th, 1999, 05:35 AM
i would like to know how do i enable and disable screensaver and monitor power off through vb project.
|
Click to See Complete Forum and Search --> : change screensaver d_hetz October 20th, 1999, 05:35 AM i would like to know how do i enable and disable screensaver and monitor power off through vb project. Lothar Haensler October 20th, 1999, 06:11 AM the SystemParametersInfo API allows you to enable/disable screensaver. use the SPI_SETSCREENSAVEACTIVE as uiAction parameter and uiParam to True/False. Lothar Haensler October 20th, 1999, 07:09 AM SystemparametersInfo has also a few uiAction values that you can use for dealing with power off issues: SPI_SETPOWEROFFACTIVE SPI_SETPOWEROFFTIMEOUT codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |