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
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
43 typedef enum _RM_REBOOT_REASON
{
44 RmRebootReasonNone
= 0x0000,
45 RmRebootReasonPermissionDenied
= 0x0001,
46 RmRebootReasonSessionMismatch
= 0x0002,
47 RmRebootReasonCriticalProcess
= 0x0004,
48 RmRebootReasonCriticalService
= 0x0008,
49 RmRebootReasonDetectedSelf
= 0x0010
54 FILETIME ProcessStartTime
;
55 } RM_UNIQUE_PROCESS
, *PRM_UNIQUE_PROCESS
;
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
;
65 } RM_PROCESS_INFO
, *PRM_PROCESS_INFO
;
67 typedef void (CDECL
*RM_WRITE_STATUS_CALLBACK
)(UINT
);
73 #endif /* RESTARTMANAGER_H */