ReactOS  0.4.12-dev-43-g63b00d8
precomp.h
Go to the documentation of this file.
1 #ifndef __SHUTDOWN_PRECOMP_H
2 #define __SHUTDOWN_PRECOMP_H
3 
4 /* INCLUDES ******************************************************************/
5 
6 #include <stdarg.h>
7 
8 #include <windef.h>
9 #include <winbase.h>
10 #include <winreg.h>
11 #include <winuser.h>
12 
13 #include <conutils.h>
14 
15 #include "resource.h"
16 
17 /* DEFINES *******************************************************************/
18 
19 #define MAX_MESSAGE_SIZE 512
20 #define MAX_MAJOR_CODE 256
21 #define MAX_MINOR_CODE 65536
22 #define MAX_TIMEOUT 315360000
23 
24 /* Reason Code List */
25 typedef struct _REASON
26 {
28  int major;
29  int minor;
31 } REASON, *PREASON;
32 
33 /* Used to determine how to shutdown the system. */
35 {
48 };
49 
50 extern const DWORD defaultReason;
51 
52 /* PROTOTYPES *****************************************************************/
53 
54 /* misc.c */
56 VOID DisplayError(DWORD dwError);
57 
58 /* gui.c */
60 
61 #endif /* __SHUTDOWN_PRECOMP_H */
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
int minor
Definition: precomp.h:29
BOOL ShutdownGuiMain(struct CommandLineOptions opts)
Definition: gui.c:45
VOID DisplayError(DWORD dwError)
Definition: logoff.c:33
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
DWORD shutdown_delay
Definition: precomp.h:43
struct _REASON REASON
LPWSTR message
Definition: precomp.h:45
DWORD ParseReasonCode(LPCWSTR)
Definition: misc.c:55
const DWORD defaultReason
Definition: misc.c:13
LPWSTR prefix
Definition: precomp.h:27
BOOL document_reason
Definition: precomp.h:41
int major
Definition: precomp.h:28
DWORD flag
Definition: precomp.h:30
WCHAR * LPWSTR
Definition: xmlstorage.h:184
struct _REASON * PREASON
LPWSTR remote_system
Definition: precomp.h:44