table of contents
other versions
- wheezy 1.4.1-4
InitiateSystemShutdownExA(3w) | Wine API | 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¶
Declared in "winreg.h". Implemented in "dlls/advapi32/advapi.c". Debug channel "advapi".Oct 2012 | Wine API |