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

Declared in "winreg.h". https://source.winehq.org/source/include/winreg.h

Implemented in "dlls/advapi32/advapi.c". https://source.winehq.org/source/dlls/advapi32/advapi.c

Debug channel "advapi".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Mar 2024.