|
-
May 22nd, 2001, 03:47 AM
#1
Thread Starter
Addicted Member
Exiting Windows
Hi there,
I wnat to know if i can close the Windows OS itself from my Program. I mean to say that if my program is closed/exited. the system should shutdown automatically.
I've tried using ExitWindowsEx as below;
Dim i As Boolean
i = ExitWindowsEx(EWX_SHUTDOWN + EWX_FORCE, 0)
but it only logsoff the cureent user. it is not shutting down the system. Any help is welkome.
Thnx in adv.
Cute Member 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|