Skocz do zawartości

zamykanie komputera


Recommended Posts

Napisano

Zwróc uwagę na ten fragment dokumentacji funkcji InitiateSystemShutdown:

Remarks

To shut down the local computer, the calling process must have the SE_SHUTDOWN_NAME privilege. To shut down a remote computer, the calling process must have the SE_REMOTE_SHUTDOWN_NAME privilege on the remote computer. By default, users can enable the SE_SHUTDOWN_NAME privilege on the computer they are logged onto, and administrators can enable the SE_REMOTE_SHUTDOWN_NAME privilege on remote computers.

Kiedyś pisałem podobny program dla szkolnej sieci (Win ME). Na każdym komputerze uruchomiona była mała aplikacja, z którą łączyło się z głównego komputera i wysyłało polecenie wyłączenia systemu.

Pozdrawiam

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gość
Odpowiedz...

×   Wkleiłeś zawartość bez formatowania.   Usuń formatowanie

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Utwórz nowe...