Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When I use ExitWindowsEx,
Message
From
05/12/1999 22:13:26
 
 
To
05/12/1999 21:13:26
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00298997
Message ID:
00299010
Views:
47
>Hi!
>
>Have you ever used ExitWindowsEx function in Win32API?
>This function has 2 parameters. One is the type of shutdown and the other is just ignored. (see Win32API help.)
>When I used this function in my form and I put 1 parameter(first one), error occurred : 'Too many argument'
>So I put no parameter and just called the function, then no error occurred and logged the user off.
>What I want is shut down the system.
>
DECLARE INTEGER ExitWindowsEx IN WIN32API INTEGER uFlags, INTEGER Reserved
=ExitWindowsEx(5,0)  && Shut down, force
This is likely not to succeed with NT and Win2K; the process must have the SE_SHUTDOWN_NAME privilege, which is not set by default.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform