ReactOS 0.4.15-dev-7788-g1ad9096
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 */
25typedef struct _REASON
26{
28 int major;
29 int minor;
32
33/* Used to determine how to shutdown the system. */
35{
48};
49
50extern const DWORD defaultReason;
51
52/* PROTOTYPES *****************************************************************/
53
54/* misc.c */
56VOID DisplayError(DWORD dwError);
57
58/* gui.c */
60
61#endif /* __SHUTDOWN_PRECOMP_H */
struct _REASON REASON
const DWORD defaultReason
Definition: misc.c:13
struct _REASON * PREASON
DWORD ParseReasonCode(LPCWSTR)
Definition: misc.c:55
VOID DisplayError(DWORD dwError)
Definition: logoff.c:33
BOOL ShutdownGuiMain(struct CommandLineOptions opts)
Definition: gui.c:45
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
LPWSTR remote_system
Definition: precomp.h:44
LPWSTR message
Definition: precomp.h:45
BOOL document_reason
Definition: precomp.h:41
DWORD shutdown_delay
Definition: precomp.h:43
int major
Definition: precomp.h:28
DWORD flag
Definition: precomp.h:30
LPWSTR prefix
Definition: precomp.h:27
int minor
Definition: precomp.h:29
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185