.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH InitiateSystemShutdownExA 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBInitiateSystemShutdownExA\fR (ADVAPI32.@) .SH SYNOPSIS BOOL InitiateSystemShutdownExA ( LPSTR \fIlpMachineName\fR, LPSTR \fIlpMessage\fR, DWORD \fIdwTimeout\fR, BOOL \fIbForceAppsClosed\fR, BOOL \fIbRebootAfterShutdown\fR, DWORD \fIdwReason\fR ) .SH DESCRIPTION .PP Initiate a shutdown or optionally restart the computer. .SH PARAMS \fIlpMachineName\fR \fB[In]\fR Network name of machine to shutdown. .PP \fIlpMessage\fR \fB[In]\fR Message displayed in shutdown dialog box. .PP \fIdwTimeout\fR \fB[In]\fR Number of seconds dialog is displayed before shutdown. .PP \fIbForceAppsClosed\fR \fB[In]\fR If \fBTRUE\fR, applications close without saving, else dialog is displayed requesting user to close apps. .PP \fIbRebootAfterShutdown\fR \fB[In]\fR If \fBTRUE\fR, system reboots after restart, else the system flushes all caches to disk and clears the screen. .PP \fIdwReason\fR \fB[In]\fR Reason for shutting down. Must be a system shutdown reason code. .PP .SH RETURNS .PP \fBSuccess:\fR \fBTRUE\fR .PP \fBFailure:\fR \fBFALSE\fR. .SH NOTES .PP if \fIlpMachineName\fR is \fBNULL\fR, the local computer is shutdown. .SH IMPLEMENTATION .PP Declared in \fB"winreg.h"\fR. .PP Implemented in \fB"dlls/advapi32/advapi.c"\fR. .PP Debug channel \fB"advapi"\fR.