From 4f3b0c126deb3b89554885e6e68d386ff6459427 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 25 Aug 2014 13:59:24 +0200 Subject: [PATCH] restartmanager.h: Added some missing declarations. --- include/restartmanager.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/restartmanager.h b/include/restartmanager.h index c2250bb333a..27c1a92f45a 100644 --- a/include/restartmanager.h +++ b/include/restartmanager.h @@ -23,8 +23,12 @@ extern "C" { #endif +#define RM_SESSION_KEY_LEN sizeof(GUID) +#define CCH_RM_SESSION_KEY RM_SESSION_KEY_LEN*2 #define CCH_RM_MAX_APP_NAME 255 #define CH_RM_MAX_SVC_NAME 63 +#define RM_INVALID_TS_SESSION -1 +#define RM_INVALID_PROCESS -1 typedef enum { RmUnknownApp = 0, @@ -36,6 +40,15 @@ typedef enum { RmCritical = 1000 } RM_APP_TYPE; +typedef enum _RM_REBOOT_REASON { + RmRebootReasonNone = 0x0000, + RmRebootReasonPermissionDenied = 0x0001, + RmRebootReasonSessionMismatch = 0x0002, + RmRebootReasonCriticalProcess = 0x0004, + RmRebootReasonCriticalService = 0x0008, + RmRebootReasonDetectedSelf = 0x0010 +} RM_REBOOT_REASON; + typedef struct { DWORD dwProcessId; FILETIME ProcessStartTime;