InitiateSystemShutdownExA(3w)

NAME

InitiateSystemShutdownExA (ADVAPI32.@)

SYNOPSIS

BOOL InitiateSystemShutdownExA
 (
  LPSTR lpMachineName,
  LPSTR lpMessage,
  DWORD dwTimeout,
  BOOL  bForceAppsClosed,
  BOOL  bRebootAfterShutdown,
  DWORD dwReason
 )

DESCRIPTION

Initiate a shutdown or optionally restart the computer.

PARAMS

lpMachineName [In] Network name of machine to shutdown.

lpMessage [In] Message displayed in shutdown dialog box.

dwTimeout [In] Number of seconds dialog is displayed before shutdown.

bForceAppsClosed [In] If TRUE, applications close without saving, else dialog is displayed requesting user to close apps.

bRebootAfterShutdown [In] If TRUE, system reboots after restart, else the system flushes all caches to disk and clears the screen.

dwReason [In] Reason for shutting down. Must be a system shutdown reason code.

RETURNS

Success: TRUE

Failure: FALSE.

NOTES

if lpMachineName is NULL, the local computer is shutdown.

IMPLEMENTATION

Defined in "winreg.h".

Implemented in "build/buildd-wine-unstable_1.1.32-1+b1-amd64-KnxYu0/wine-unstable-1.1.32/build32/dlls/advapi32/advapi.c".

Debug channel "advapi".
Copyright © 2010-2025 Platon Technologies, s.r.o.           Index | Man stránky | tLDP | Dokumenty | Utilitky | O projekte
Design by styleshout