1) Registry 편집
[HKEY_CURRENT_USER\Control Panel\Desktop]
"ScreenSaverIsSecure"="1" (1- 설정, 0-해제)
2) cmd이용
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v ScreenSaveTimeOut /t REG_SZ /d 300 /f
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v ScreenSaveActive /t REG_SZ /d 0 /f
3) WIN API 이용 방법
SystemParametersInfo(SPI_SETSCREENSAVERACTIVE, TRUE, 0, 0)
DWORD dwTime = 180;
SystemParametersInfo(SPI_SETSCREENSAVERTIMEOUT, dwTime, NULL, 0)
Ref.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms724947(v=vs.85).aspx
댓글 없음:
댓글 쓰기