I can't seem to get the ExitWindowsEx function to work according to specification. No matter what parameter I pass, all I get is a logoff. I don't quite understand the difference between passing by value or by reference. Here is my code;
Declare long ExitWindowsEx in user32 long uFlags, long dwReserved
ExitWindowsEx(4,0)
Since the parameter 0=EWX_LOGOFF, It seems that the parameter uFlags always evaluates to 0 for some reason, but I don't know how to test that hypothesis. [sig][/sig]
Declare long ExitWindowsEx in user32 long uFlags, long dwReserved
ExitWindowsEx(4,0)
Since the parameter 0=EWX_LOGOFF, It seems that the parameter uFlags always evaluates to 0 for some reason, but I don't know how to test that hypothesis. [sig][/sig]