|
-
Mar 14th, 2000, 10:09 AM
#1
Thread Starter
Junior Member
I was wondering how to shut-down another Windows 95/98 computer OTHER THAN YOUR OWN over a NETWORK.
Most people give me this:
Code:
... In a module ...
Declare Function ExitWindowsEx Lib "user32" _
(ByVal uFlags As Long, ByVal dwReserved As Long) As Long
Public Const EWX_LOGOFF = &H0
Public Const EWX_SHUTDOWN = &H1
Public Const EWX_REBOOT = &H2
Public Const EWX_FORCE = &H4
... on the form ...
Private Sub Command1_Click()
ExitWindowsEx EWX_LOGOFF, 0 'To log off
ExitWindowsEx EWX_REBOOT, 0 'To Reboot
ExitWindowsEx EWX_SHUTDOWN, 0 'To Shutdown
ExitWindowsEx EWX_FORCE, 0 'To Force APP Closeure
End Sub
This IS the correct Shut-down proceedure for a Win 95/98 computer, but NOT OVER A NETWORK!! (because, as you may notice, nowhere in the code does it state the name of the remote pc.)
If you can't give me the code for it, at least tell me EXACTLY what to search for to get help on it in MSDN, because I've tried to search for things like:
InitiateSystemShutdown, ExitWindowsEx, Shutdown, Remote Shudown, and more... but nothing has worked, and I'm EXTREMELY frustrated!!
PLEASE HELP ME TO UNDERSTAND!!!!
I NEED it for an App that I'm creating!!!
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
|