kernel32: Use the Mach host_info(HOST_BASIC_INFO) API to obtain total RAM after tryin...
[wine/multimedia.git] / include / restartmanager.h
blobc2250bb333ae273372b427182717aefbc9f91ba6
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 CCH_RM_MAX_APP_NAME 255
27 #define CH_RM_MAX_SVC_NAME 63
29 typedef enum {
30 RmUnknownApp = 0,
31 RmMainWindow = 1,
32 RmOtherWindow = 2,
33 RmService = 3,
34 RmExplorer = 4,
35 RmConsole = 5,
36 RmCritical = 1000
37 } RM_APP_TYPE;
39 typedef struct {
40 DWORD dwProcessId;
41 FILETIME ProcessStartTime;
42 } RM_UNIQUE_PROCESS, *PRM_UNIQUE_PROCESS;
44 typedef struct {
45 RM_UNIQUE_PROCESS Process;
46 WCHAR strAppName[CCH_RM_MAX_APP_NAME+1];
47 WCHAR strServiceShortName[CH_RM_MAX_SVC_NAME+1];
48 RM_APP_TYPE ApplicationType;
49 ULONG AppStatus;
50 DWORD TSSessionID;
51 BOOL bRestartable;
52 } RM_PROCESS_INFO, *PRM_PROCESS_INFO;
54 #ifdef __cplusplus
56 #endif
58 #endif /* RESTARTMANAGER_H */