i would like to know how do i enable and disable screensaver and monitor power off through vb project.
Printable View
i would like to know how do i enable and disable screensaver and monitor power off through vb project.
the SystemParametersInfo API allows you to enable/disable screensaver.
use the SPI_SETSCREENSAVEACTIVE as uiAction parameter and uiParam to True/False.
SystemparametersInfo has also a few uiAction values that you can use for dealing with power off issues:
SPI_SETPOWEROFFACTIVE
SPI_SETPOWEROFFTIMEOUT