|
-
Nov 15th, 1999, 08:23 PM
#9
Addicted Member
Try it:
------------
Private Declare Function InitiateSystemShutdown Lib "advapi32.dll" Alias "InitiateSystemShutdownA" (ByVal lpMachineName As String, lpMessage As String, dwTimeout As Long, bForceAppsClosed As Boolean, bRebootAfterShutdown As Boolean) As Boolean
Private Sub Command1_Click()
Dim x&
x = InitiateSystemShutdown("pc_name", "Shutdown...", 0, True, False)
End Sub
------------------
smalig
[email protected]
smalig.tripod.com
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
|