O
OSVBNET
Guest
Hi
I use "ExitWindowsEx" and other Libs:
Public Enum EnumExitWindows
WE_LOGOFF = 0
WE_SHUTDOWN = 1
WE_REBOOT = 2
WE_POWEROFF = 8
End Enum
Usage:
ExitWindowsEx(EnumExitWindows.xxx Or EWX_FORCE, &HFFFFS)
Where xxx can be:
WE_POWEROFF * WE_LOGOFF * WE_REBOOT
These 3 work fine! But I need to add "Lock PC/Windows" which I cannot find how?
Exactly like we "Lock" Windows in Shutdown menu!
Continue reading...
I use "ExitWindowsEx" and other Libs:
Public Enum EnumExitWindows
WE_LOGOFF = 0
WE_SHUTDOWN = 1
WE_REBOOT = 2
WE_POWEROFF = 8
End Enum
Usage:
ExitWindowsEx(EnumExitWindows.xxx Or EWX_FORCE, &HFFFFS)
Where xxx can be:
WE_POWEROFF * WE_LOGOFF * WE_REBOOT
These 3 work fine! But I need to add "Lock PC/Windows" which I cannot find how?
Exactly like we "Lock" Windows in Shutdown menu!
Continue reading...