rpcrt4: Fix arguments of HttpAddRequestHeaders.
[wine.git] / include / restartmanager.h
blob27c1a92f45a925715af9655351cce867fe41faca
1 /*
2 * Copyright (C) 2010 Austin English
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef RESTARTMANAGER_H
20 #define RESTARTMANAGER_H
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
26 #define RM_SESSION_KEY_LEN sizeof(GUID)
27 #define CCH_RM_SESSION_KEY RM_SESSION_KEY_LEN*2
28 #define CCH_RM_MAX_APP_NAME 255
29 #define CH_RM_MAX_SVC_NAME 63
30 #define RM_INVALID_TS_SESSION -1
31 #define RM_INVALID_PROCESS -1
33 typedef enum {
34 RmUnknownApp = 0,
35 RmMainWindow = 1,
36 RmOtherWindow = 2,
37 RmService = 3,
38 RmExplorer = 4,
39 RmConsole = 5,
40 RmCritical = 1000
41 } RM_APP_TYPE;
43 typedef enum _RM_REBOOT_REASON {
44 RmRebootReasonNone = 0x0000,
45 RmRebootReasonPermissionDenied = 0x0001,
46 RmRebootReasonSessionMismatch = 0x0002,
47 RmRebootReasonCriticalProcess = 0x0004,
48 RmRebootReasonCriticalService = 0x0008,
49 RmRebootReasonDetectedSelf = 0x0010
50 } RM_REBOOT_REASON;
52 typedef struct {
53 DWORD dwProcessId;
54 FILETIME ProcessStartTime;
55 } RM_UNIQUE_PROCESS, *PRM_UNIQUE_PROCESS;
57 typedef struct {
58 RM_UNIQUE_PROCESS Process;
59 WCHAR strAppName[CCH_RM_MAX_APP_NAME+1];
60 WCHAR strServiceShortName[CH_RM_MAX_SVC_NAME+1];
61 RM_APP_TYPE ApplicationType;
62 ULONG AppStatus;
63 DWORD TSSessionID;
64 BOOL bRestartable;
65 } RM_PROCESS_INFO, *PRM_PROCESS_INFO;
67 #ifdef __cplusplus
69 #endif
71 #endif /* RESTARTMANAGER_H */