tools: Move the cpmap.pl script to tools/make_unicode.
[wine/multimedia.git] / include / psapi.h
blobf0317241d315225fc7f4446058b7b28fbe1c86fc
1 /*
2 * Declarations for PSAPI
4 * Copyright (C) 1998 Patrik Stridvall
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __WINE_PSAPI_H
22 #define __WINE_PSAPI_H
24 typedef struct _MODULEINFO {
25 LPVOID lpBaseOfDll;
26 DWORD SizeOfImage;
27 LPVOID EntryPoint;
28 } MODULEINFO, *LPMODULEINFO;
30 typedef struct _PROCESS_MEMORY_COUNTERS {
31 DWORD cb;
32 DWORD PageFaultCount;
33 SIZE_T PeakWorkingSetSize;
34 SIZE_T WorkingSetSize;
35 SIZE_T QuotaPeakPagedPoolUsage;
36 SIZE_T QuotaPagedPoolUsage;
37 SIZE_T QuotaPeakNonPagedPoolUsage;
38 SIZE_T QuotaNonPagedPoolUsage;
39 SIZE_T PagefileUsage;
40 SIZE_T PeakPagefileUsage;
41 } PROCESS_MEMORY_COUNTERS;
42 typedef PROCESS_MEMORY_COUNTERS *PPROCESS_MEMORY_COUNTERS;
44 typedef struct _PSAPI_WS_WATCH_INFORMATION {
45 LPVOID FaultingPc;
46 LPVOID FaultingVa;
47 } PSAPI_WS_WATCH_INFORMATION, *PPSAPI_WS_WATCH_INFORMATION;
49 typedef struct _PERFORMANCE_INFORMATION {
50 DWORD cb;
51 SIZE_T CommitTotal;
52 SIZE_T CommitLimit;
53 SIZE_T CommitPeak;
54 SIZE_T PhysicalTotal;
55 SIZE_T PhysicalAvailable;
56 SIZE_T SystemCache;
57 SIZE_T KernelTotal;
58 SIZE_T KernelPaged;
59 SIZE_T KernelNonpaged;
60 SIZE_T PageSize;
61 DWORD HandleCount;
62 DWORD ProcessCount;
63 DWORD ThreadCount;
64 } PERFORMANCE_INFORMATION, *PPERFORMANCE_INFORMATION;
66 typedef struct _ENUM_PAGE_FILE_INFORMATION {
67 DWORD cb;
68 DWORD Reserved;
69 SIZE_T TotalSize;
70 SIZE_T TotalInUse;
71 SIZE_T PeakUsage;
72 } ENUM_PAGE_FILE_INFORMATION, *PENUM_PAGE_FILE_INFORMATION;
74 typedef BOOL (*PENUM_PAGE_FILE_CALLBACKA) (LPVOID, PENUM_PAGE_FILE_INFORMATION, LPCSTR);
75 typedef BOOL (*PENUM_PAGE_FILE_CALLBACKW) (LPVOID, PENUM_PAGE_FILE_INFORMATION, LPCWSTR);
76 #define PENUM_PAGE_FILE_CALLBACK WINELIB_NAME_AW(PENUM_PAGE_FILE_CALLBACK)
78 #ifdef __cplusplus
79 extern "C" {
80 #endif
82 BOOL WINAPI EnumProcesses(DWORD*, DWORD, DWORD*);
83 BOOL WINAPI EnumProcessModules(HANDLE, HMODULE*, DWORD, LPDWORD);
84 DWORD WINAPI GetModuleBaseNameA(HANDLE, HMODULE, LPSTR, DWORD);
85 DWORD WINAPI GetModuleBaseNameW(HANDLE, HMODULE, LPWSTR, DWORD);
86 #define GetModuleBaseName WINELIB_NAME_AW(GetModuleBaseName)
87 DWORD WINAPI GetModuleFileNameExA(HANDLE, HMODULE, LPSTR, DWORD);
88 DWORD WINAPI GetModuleFileNameExW(HANDLE, HMODULE, LPWSTR, DWORD);
89 #define GetModuleFileNameEx WINELIB_NAME_AW(GetModuleFileNameEx)
90 BOOL WINAPI GetModuleInformation(HANDLE, HMODULE, LPMODULEINFO, DWORD);
91 BOOL WINAPI EmptyWorkingSet(HANDLE);
92 BOOL WINAPI QueryWorkingSet(HANDLE, PVOID, DWORD);
93 BOOL WINAPI QueryWorkingSetEx(HANDLE, PVOID, DWORD);
94 BOOL WINAPI InitializeProcessForWsWatch(HANDLE);
95 BOOL WINAPI GetWsChanges(HANDLE, PPSAPI_WS_WATCH_INFORMATION, DWORD);
96 DWORD WINAPI GetMappedFileNameW(HANDLE, LPVOID, LPWSTR, DWORD);
97 DWORD WINAPI GetMappedFileNameA(HANDLE, LPVOID, LPSTR, DWORD);
98 #define GetMappedFileName WINELIB_NAME_AW(GetMappedFileName)
99 BOOL WINAPI EnumDeviceDrivers(LPVOID*, DWORD, LPDWORD);
100 DWORD WINAPI GetDeviceDriverBaseNameA(LPVOID, LPSTR, DWORD);
101 DWORD WINAPI GetDeviceDriverBaseNameW(LPVOID, LPWSTR, DWORD);
102 #define GetDeviceDriverBaseName WINELIB_NAME_AW(GetDeviceDriverBaseName)
103 DWORD WINAPI GetDeviceDriverFileNameA(LPVOID, LPSTR, DWORD);
104 DWORD WINAPI GetDeviceDriverFileNameW(LPVOID, LPWSTR, DWORD);
105 #define GetDeviceDriverFileName WINELIB_NAME_AW(GetDeviceDriverFileName)
106 BOOL WINAPI GetProcessMemoryInfo(HANDLE, PPROCESS_MEMORY_COUNTERS, DWORD);
107 BOOL WINAPI GetPerformanceInfo(PPERFORMANCE_INFORMATION, DWORD);
108 BOOL WINAPI EnumPageFilesA(PENUM_PAGE_FILE_CALLBACKA, LPVOID);
109 BOOL WINAPI EnumPageFilesW(PENUM_PAGE_FILE_CALLBACKW, LPVOID);
110 #define EnumPageFiles WINELIB_NAME_AW(EnumPageFiles)
111 DWORD WINAPI GetProcessImageFileNameA(HANDLE, LPSTR, DWORD);
112 DWORD WINAPI GetProcessImageFileNameW(HANDLE, LPWSTR, DWORD);
113 #define GetProcessImageFileName WINELIB_NAME_AW(GetProcessImageFileName)
115 #ifdef __cplusplus
117 #endif
119 #endif /* __WINE_PSAPI_H */