Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When I use ExitWindowsEx,
Message
De
05/12/1999 22:13:26
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00298997
Message ID:
00299010
Vues:
46
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform