Seems to be an undocumented API call ?
#Include <WinAPI.au3> WinLogOnOff() Func WinLogOnOff() Local $nCount $nCount = DllCall("shell32.dll", "int", 60, "hwnd", 0) Return $nCount[0] EndFunc ConsoleWrite( "DllCall Error " & _WinAPI_GetLastError () & @CRLF & _WinAPI_GetLastErrorMessage ()) ;Error 13: The data is invalid.
Just something I had laying around.
Regards
ptrex
Edited by ptrex, 14 September 2012 - 09:47 AM.





