mfplay: Forward playback control methods to the session.
[wine/zf.git] / include / restartmanager.h
blobca5f9be71b7e162e44549f98b2040d5c9a61061f
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 enum _RM_FILTER_ACTION {
53 RmInvalidFilterAction = 0x0000,
54 RmNoRestart = 0x0001,
55 RmNoShutdown = 0x0002
56 } RM_FILTER_ACTION;
58 typedef struct {
59 DWORD dwProcessId;
60 FILETIME ProcessStartTime;
61 } RM_UNIQUE_PROCESS, *PRM_UNIQUE_PROCESS;
63 typedef struct {
64 RM_UNIQUE_PROCESS Process;
65 WCHAR strAppName[CCH_RM_MAX_APP_NAME+1];
66 WCHAR strServiceShortName[CH_RM_MAX_SVC_NAME+1];
67 RM_APP_TYPE ApplicationType;
68 ULONG AppStatus;
69 DWORD TSSessionID;
70 BOOL bRestartable;
71 } RM_PROCESS_INFO, *PRM_PROCESS_INFO;
73 typedef void (CDECL *RM_WRITE_STATUS_CALLBACK)(UINT);
75 #ifdef __cplusplus
77 #endif
79 #endif /* RESTARTMANAGER_H */