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 "include/winreg.h". gitlab.winehq.org/wine/wine/blob/master/include/winreg.h

Implemented in "dlls/advapi32/advapi.c". gitlab.winehq.org/wine/wine/blob/master/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 Nov 2024.