|
-
Aug 18th, 2000, 02:32 AM
#4
Guru
Nah...
MSDN says:
The InitiateSystemShutdown function displays a dialog box that notifies the user that the system is shutting down.
During the InitiateSystemShutdown time-out period, the AbortSystemShutdown function can prevent the system from shutting down.
Also, it's only for NT, and, your program must have a certain privilege (from what I remember, setting privileges on NT is more trouble than it's worth).
Even hooks (like denniswrenn suggested) aren't "allowed" to disable shutting Windows down.
Besides, are you sure you don't want Windows to ever shut down?
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
|