ReactOS  0.4.14-dev-98-gb0d4763
psapi.h
Go to the documentation of this file.
1 /*
2  psapi.h - Include file for PSAPI.DLL APIs
3 
4  Written by Mumit Khan <khan@nanotech.wisc.edu>
5 
6  This file is part of a free library for the Win32 API.
7 
8  NOTE: This strictly does not belong in the Win32 API since it's
9  really part of Platform SDK. However,GDB needs it and we might
10  as well provide it here.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 
16 */
17 #ifndef _PSAPI_H
18 #define _PSAPI_H
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 #ifndef RC_INVOKED
25 
26 typedef struct _MODULEINFO {
31 
36 
37 typedef struct _PROCESS_MEMORY_COUNTERS {
49 
63 
64 typedef struct _PERFORMANCE_INFORMATION {
80 
88 
91 
92 /* Grouped by application,not in alphabetical order. */
117 
118 #endif /* not RC_INVOKED */
119 
120 #ifdef UNICODE
121 #define PENUM_PAGE_FILE_CALLBACK PENUM_PAGE_FILE_CALLBACKW
122 #define EnumPageFiles EnumPageFilesW
123 #define GetModuleBaseName GetModuleBaseNameW
124 #define GetModuleFileNameEx GetModuleFileNameExW
125 #define GetMappedFilenameEx GetMappedFilenameExW
126 #define GetDeviceDriverBaseName GetDeviceDriverBaseNameW
127 #define GetDeviceDriverFileName GetDeviceDriverFileNameW
128 #define GetProcessImageFileName GetProcessImageFileNameW
129 #else
130 #define PENUM_PAGE_FILE_CALLBACK PENUM_PAGE_FILE_CALLBACKA
131 #define EnumPageFiles EnumPageFilesA
132 #define GetModuleBaseName GetModuleBaseNameA
133 #define GetModuleFileNameEx GetModuleFileNameExA
134 #define GetMappedFilenameEx GetMappedFilenameExA
135 #define GetDeviceDriverBaseName GetDeviceDriverBaseNameA
136 #define GetDeviceDriverFileName GetDeviceDriverFileNameA
137 #define GetProcessImageFileName GetProcessImageFileNameA
138 #endif
139 
140 #ifdef __cplusplus
141 }
142 #endif
143 
144 #endif /* _PSAPI_H */
145 
BOOL(CALLBACK * PENUM_PAGE_FILE_CALLBACKW)(LPVOID, PENUM_PAGE_FILE_INFORMATION, LPCWSTR)
Definition: psapi.h:90
DWORD SizeOfImage
Definition: compat.h:568
SIZE_T PeakWorkingSetSize
Definition: psapi.h:40
DWORD WINAPI GetProcessImageFileNameW(HANDLE, LPWSTR, DWORD)
Definition: psapi.c:1179
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
BOOL WINAPI InitializeProcessForWsWatch(HANDLE)
Definition: psapi.c:1127
BOOL WINAPI GetProcessMemoryInfo(HANDLE, PPROCESS_MEMORY_COUNTERS, DWORD)
Definition: psapi.c:1555
SIZE_T PeakPagefileUsage
Definition: psapi.h:47
SIZE_T QuotaPagedPoolUsage
Definition: psapi.h:43
BOOL WINAPI EmptyWorkingSet(HANDLE)
Definition: psapi.c:329
#define CALLBACK
Definition: compat.h:27
char * LPSTR
Definition: xmlstorage.h:182
#define BOOL
Definition: nt_native.h:43
struct _PERFORMANCE_INFORMATION * PPERFORMANCE_INFORMATION
BOOL WINAPI EnumDeviceDrivers(LPVOID *, DWORD, LPDWORD)
Definition: psapi.c:374
struct _PROCESS_MEMORY_COUNTERS_EX PROCESS_MEMORY_COUNTERS_EX
DWORD WINAPI GetMappedFileNameA(HANDLE, LPVOID, LPSTR, DWORD)
Definition: psapi.c:801
unsigned int BOOL
Definition: ntddk_ex.h:94
DWORD WINAPI GetDeviceDriverFileNameW(LPVOID, LPWSTR, DWORD)
Definition: psapi.c:762
struct _MODULEINFO * LPMODULEINFO
LPVOID EntryPoint
Definition: compat.h:569
BOOL WINAPI GetPerformanceInfo(PPERFORMANCE_INFORMATION, DWORD)
Definition: psapi.c:1410
SIZE_T QuotaNonPagedPoolUsage
Definition: psapi.h:45
SIZE_T PhysicalAvailable
Definition: psapi.h:70
SIZE_T QuotaPeakNonPagedPoolUsage
Definition: psapi.h:57
BOOL WINAPI QueryWorkingSet(HANDLE, PVOID, DWORD)
Definition: psapi.c:1629
struct _ENUM_PAGE_FILE_INFORMATION ENUM_PAGE_FILE_INFORMATION
const char * LPCSTR
Definition: xmlstorage.h:183
DWORD WINAPI GetModuleBaseNameW(HANDLE, HMODULE, LPWSTR, DWORD)
Definition: psapi.c:930
BOOL WINAPI EnumProcesses(DWORD *, DWORD, DWORD *)
LPVOID lpBaseOfDll
Definition: compat.h:567
BOOL WINAPI EnumProcessModules(HANDLE, HMODULE *, DWORD, LPDWORD)
Definition: psapi.c:542
struct _PERFORMANCE_INFORMATION PERFORMANCE_INFORMATION
DWORD WINAPI GetDeviceDriverFileNameA(LPVOID, LPSTR, DWORD)
Definition: psapi.c:684
BOOL WINAPI GetModuleInformation(HANDLE, HMODULE, LPMODULEINFO, DWORD)
Definition: psapi.c:1080
#define WINAPI
Definition: msvc.h:8
struct _PROCESS_MEMORY_COUNTERS * PPROCESS_MEMORY_COUNTERS
unsigned long DWORD
Definition: ntddk_ex.h:95
DWORD WINAPI GetMappedFileNameW(HANDLE, LPVOID, LPWSTR, DWORD)
Definition: psapi.c:837
SIZE_T QuotaNonPagedPoolUsage
Definition: psapi.h:58
#define LPVOID
Definition: nt_native.h:45
struct _MODULEINFO MODULEINFO
SIZE_T QuotaPeakNonPagedPoolUsage
Definition: psapi.h:44
struct _PROCESS_MEMORY_COUNTERS_EX * PPROCESS_MEMORY_COUNTERS_EX
BOOL WINAPI GetWsChanges(HANDLE, PPSAPI_WS_WATCH_INFORMATION, DWORD)
Definition: psapi.c:1152
BOOL WINAPI EnumPageFilesA(PENUM_PAGE_FILE_CALLBACKA, LPVOID)
Definition: psapi.c:1286
ULONG_PTR SIZE_T
Definition: typedefs.h:78
DWORD WINAPI GetDeviceDriverBaseNameA(LPVOID, LPSTR, DWORD)
Definition: psapi.c:645
SIZE_T QuotaPeakPagedPoolUsage
Definition: psapi.h:42
DWORD WINAPI GetModuleFileNameExA(HANDLE, HMODULE, LPSTR, DWORD)
Definition: psapi.c:988
SIZE_T QuotaPeakPagedPoolUsage
Definition: psapi.h:55
struct _ENUM_PAGE_FILE_INFORMATION * PENUM_PAGE_FILE_INFORMATION
DWORD WINAPI GetModuleBaseNameA(HANDLE, HMODULE, LPSTR, DWORD)
Definition: psapi.c:896
struct _PSAPI_WS_WATCH_INFORMATION * PPSAPI_WS_WATCH_INFORMATION
struct _PROCESS_MEMORY_COUNTERS PROCESS_MEMORY_COUNTERS
uint32_t * LPDWORD
Definition: typedefs.h:57
struct _PSAPI_WS_WATCH_INFORMATION PSAPI_WS_WATCH_INFORMATION
DWORD WINAPI GetProcessImageFileNameA(HANDLE, LPSTR, DWORD)
Definition: psapi.c:1232
BOOL WINAPI EnumPageFilesW(PENUM_PAGE_FILE_CALLBACKW, LPVOID)
Definition: psapi.c:1314
DWORD WINAPI GetDeviceDriverBaseNameW(LPVOID, LPWSTR, DWORD)
Definition: psapi.c:723
WCHAR * LPWSTR
Definition: xmlstorage.h:184
DWORD WINAPI GetModuleFileNameExW(HANDLE, HMODULE, LPWSTR, DWORD)
Definition: psapi.c:1022
BOOL(CALLBACK * PENUM_PAGE_FILE_CALLBACKA)(LPVOID, PENUM_PAGE_FILE_INFORMATION, LPCSTR)
Definition: psapi.h:89