ReactOS 0.4.16-dev-2522-g97cc325
precomp.h
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS shutdown/logoff utility
4 * PURPOSE: Precompiled header
5 */
6
7#pragma once
8
9/* INCLUDES ******************************************************************/
10
11#include <stdarg.h>
12
13#include <windef.h>
14#include <winbase.h>
15#include <winreg.h>
16#include <winuser.h>
17
18#include <conutils.h>
19
20#include "resource.h"
21
22/* DEFINES *******************************************************************/
23
24#define MAX_MESSAGE_SIZE 512
25#define MAX_MAJOR_CODE 256
26#define MAX_MINOR_CODE 65536
27#define MAX_TIMEOUT 315360000
28
29/* Reason Code List */
30typedef struct _REASON
31{
33 int major;
34 int minor;
37
38/* Used to determine how to shutdown the system. */
40{
53};
54
55extern const DWORD defaultReason;
56
57/* PROTOTYPES *****************************************************************/
58
59/* misc.c */
61VOID DisplayError(DWORD dwError);
62
63/* gui.c */
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:49
LPWSTR message
Definition: precomp.h:50
BOOL document_reason
Definition: precomp.h:46
DWORD shutdown_delay
Definition: precomp.h:48
int major
Definition: precomp.h:33
DWORD flag
Definition: precomp.h:35
LPWSTR prefix
Definition: precomp.h:32
int minor
Definition: precomp.h:34
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
WCHAR * LPWSTR
Definition: xmlstorage.h:184