Skocz do zawartości

[Delphi] problem z exitwindows


Death44

Polecane posty

ort! ale pisze dokładnie tak:
Jak zamknąć system, uruchomić ponownie Windows lub komputer

Nalezy wykorzystac funkcje ExitWindowsEx z parametrem :

EWX_FORCE


Forces processes to terminate. Instead of bringing up the "application not responding" dialog box for the user, this value forces an application to terminate if it does not respond.

EWX_LOGOFF


Shuts down all processes running in the security context of the process that called the ExitWindowsEx function. Then it logs the user off.

EWX_POWEROFF


Shuts down the system and turns off the power.

EWX_REBOOT


Shuts down the system and then restarts the system.

EWX_SHUTDOWN


Shuts down the system to a point at which it is safe to turn off the power. All file buffers have been flushed to disk, and all running processes have stopped.

Przykład



[delphi][/delphi]

[b]// Nie rób takich błędów ortograficznych, poza tym korzystaj z tagów do kolorowania składni - Iskar
Link do komentarza
Udostępnij na innych stronach

Zarchiwizowany

Ten temat jest archiwizowany i nie można dodawać nowych odpowiedzi.

×
×
  • Utwórz nowe...