ReactOS
0.4.16-dev-847-g386fccd
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
{
27
LPWSTR
prefix
;
28
int
major
;
29
int
minor
;
30
DWORD
flag
;
31
}
REASON
, *
PREASON
;
32
33
/* Used to determine how to shutdown the system. */
34
struct
CommandLineOptions
35
{
36
BOOL
abort
;
37
BOOL
force
;
38
BOOL
logoff
;
39
BOOL
restart
;
40
BOOL
shutdown
;
41
BOOL
document_reason
;
42
BOOL
hibernate
;
43
DWORD
shutdown_delay
;
44
LPWSTR
remote_system
;
45
LPWSTR
message
;
46
DWORD
reason
;
47
BOOL
show_gui
;
48
};
49
50
extern
const
DWORD
defaultReason
;
51
52
/* PROTOTYPES *****************************************************************/
53
54
/* misc.c */
55
DWORD
ParseReasonCode
(
LPCWSTR
);
56
VOID
DisplayError
(
DWORD
dwError);
57
58
/* gui.c */
59
BOOL
ShutdownGuiMain
(
struct
CommandLineOptions
opts);
60
61
#endif
/* __SHUTDOWN_PRECOMP_H */
REASON
struct _REASON REASON
defaultReason
const DWORD defaultReason
Definition:
misc.c:13
PREASON
struct _REASON * PREASON
ParseReasonCode
DWORD ParseReasonCode(LPCWSTR)
Definition:
misc.c:55
DisplayError
VOID DisplayError(DWORD dwError)
Definition:
logoff.c:33
ShutdownGuiMain
BOOL ShutdownGuiMain(struct CommandLineOptions opts)
Definition:
gui.c:45
conutils.h
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
void
Definition:
nsiface.idl:2307
CommandLineOptions
Definition:
precomp.h:35
CommandLineOptions::logoff
BOOL logoff
Definition:
precomp.h:38
CommandLineOptions::remote_system
LPWSTR remote_system
Definition:
precomp.h:44
CommandLineOptions::hibernate
BOOL hibernate
Definition:
precomp.h:42
CommandLineOptions::reason
DWORD reason
Definition:
precomp.h:46
CommandLineOptions::shutdown
BOOL shutdown
Definition:
precomp.h:40
CommandLineOptions::message
LPWSTR message
Definition:
precomp.h:45
CommandLineOptions::show_gui
BOOL show_gui
Definition:
precomp.h:47
CommandLineOptions::document_reason
BOOL document_reason
Definition:
precomp.h:41
CommandLineOptions::force
BOOL force
Definition:
precomp.h:37
CommandLineOptions::restart
BOOL restart
Definition:
precomp.h:39
CommandLineOptions::shutdown_delay
DWORD shutdown_delay
Definition:
precomp.h:43
CommandLineOptions::abort
BOOL abort
Definition:
precomp.h:36
_REASON
Definition:
precomp.h:26
_REASON::major
int major
Definition:
precomp.h:28
_REASON::flag
DWORD flag
Definition:
precomp.h:30
_REASON::prefix
LPWSTR prefix
Definition:
precomp.h:27
_REASON::minor
int minor
Definition:
precomp.h:29
resource.h
winbase.h
windef.h
winreg.h
winuser.h
LPWSTR
WCHAR * LPWSTR
Definition:
xmlstorage.h:184
LPCWSTR
const WCHAR * LPCWSTR
Definition:
xmlstorage.h:185
base
applications
shutdown
precomp.h
Generated on Sat Mar 22 2025 06:15:43 for ReactOS by
1.9.6