Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to shutdown window
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00517011
Message ID:
00517796
Views:
17
>Forgot to include Stanley on this.
>
>>>Do you know, is it possible from VB Script? It would satisfy his request, I believe.
>>
>>Nope, no Win32 API calls from WSH, AFAIK. The best suggestion I could offer would be to write an EXE in C++ and deploy that. Something like
>>#include 
>>#include 
>>void main(){
>>    ExitWindowsEx(EWX_SHUTDOWN, 0); // Second param is ignored
>>}
Thanks, I was thinking about it too.
#include <winuser.h>
#include <windows.h>
void main(){
    ExitWindowsEx(EWX_SHUTDOWN, 0); // Second param is ignored 
}
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform