ReactOS 0.4.16-dev-91-g764881a
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
21extern "C" {
22#endif
23
24#ifndef RC_INVOKED
25
26typedef struct _MODULEINFO {
31
36
49
63
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
#define GetModuleFileNameExW(w, x, y, z)
Definition: compat.h:922
#define CALLBACK
Definition: compat.h:35
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
#define BOOL
Definition: nt_native.h:43
#define LPVOID
Definition: nt_native.h:45
BOOL WINAPI GetWsChanges(HANDLE, PPSAPI_WS_WATCH_INFORMATION, DWORD)
Definition: psapi.c:1136
struct _MODULEINFO MODULEINFO
BOOL WINAPI GetProcessMemoryInfo(HANDLE, PPROCESS_MEMORY_COUNTERS, DWORD)
Definition: psapi.c:1539
DWORD WINAPI GetDeviceDriverBaseNameA(LPVOID, LPSTR, DWORD)
Definition: psapi.c:629
struct _PERFORMANCE_INFORMATION * PPERFORMANCE_INFORMATION
DWORD WINAPI GetMappedFileNameA(HANDLE, LPVOID, LPSTR, DWORD)
Definition: psapi.c:785
BOOL WINAPI GetPerformanceInfo(PPERFORMANCE_INFORMATION, DWORD)
Definition: psapi.c:1394
DWORD WINAPI GetDeviceDriverBaseNameW(LPVOID, LPWSTR, DWORD)
Definition: psapi.c:707
BOOL WINAPI EnumPageFilesW(PENUM_PAGE_FILE_CALLBACKW, LPVOID)
Definition: psapi.c:1298
DWORD WINAPI GetDeviceDriverFileNameW(LPVOID, LPWSTR, DWORD)
Definition: psapi.c:746
DWORD WINAPI GetProcessImageFileNameA(HANDLE, LPSTR, DWORD)
Definition: psapi.c:1216
BOOL WINAPI EnumDeviceDrivers(LPVOID *, DWORD, LPDWORD)
Definition: psapi.c:358
BOOL WINAPI EnumProcessModules(HANDLE, HMODULE *, DWORD, LPDWORD)
Definition: psapi.c:526
BOOL WINAPI InitializeProcessForWsWatch(HANDLE)
Definition: psapi.c:1111
struct _PROCESS_MEMORY_COUNTERS_EX PROCESS_MEMORY_COUNTERS_EX
DWORD WINAPI GetProcessImageFileNameW(HANDLE, LPWSTR, DWORD)
Definition: psapi.c:1163
DWORD WINAPI GetModuleBaseNameW(HANDLE, HMODULE, LPWSTR, DWORD)
Definition: psapi.c:914
struct _PROCESS_MEMORY_COUNTERS * PPROCESS_MEMORY_COUNTERS
struct _PSAPI_WS_WATCH_INFORMATION PSAPI_WS_WATCH_INFORMATION
BOOL WINAPI GetModuleInformation(HANDLE, HMODULE, LPMODULEINFO, DWORD)
Definition: psapi.c:1064
struct _PSAPI_WS_WATCH_INFORMATION * PPSAPI_WS_WATCH_INFORMATION
BOOL(CALLBACK * PENUM_PAGE_FILE_CALLBACKW)(LPVOID, PENUM_PAGE_FILE_INFORMATION, LPCWSTR)
Definition: psapi.h:90
BOOL WINAPI EmptyWorkingSet(HANDLE)
Definition: psapi.c:313
DWORD WINAPI GetModuleFileNameExA(HANDLE, HMODULE, LPSTR, DWORD)
Definition: psapi.c:972
DWORD WINAPI GetModuleBaseNameA(HANDLE, HMODULE, LPSTR, DWORD)
Definition: psapi.c:880
BOOL WINAPI EnumProcesses(DWORD *, DWORD, DWORD *)
BOOL WINAPI QueryWorkingSet(HANDLE, PVOID, DWORD)
Definition: psapi.c:1613
struct _PROCESS_MEMORY_COUNTERS_EX * PPROCESS_MEMORY_COUNTERS_EX
struct _MODULEINFO * LPMODULEINFO
struct _ENUM_PAGE_FILE_INFORMATION ENUM_PAGE_FILE_INFORMATION
struct _PERFORMANCE_INFORMATION PERFORMANCE_INFORMATION
struct _ENUM_PAGE_FILE_INFORMATION * PENUM_PAGE_FILE_INFORMATION
DWORD WINAPI GetMappedFileNameW(HANDLE, LPVOID, LPWSTR, DWORD)
Definition: psapi.c:821
BOOL WINAPI EnumPageFilesA(PENUM_PAGE_FILE_CALLBACKA, LPVOID)
Definition: psapi.c:1270
struct _PROCESS_MEMORY_COUNTERS PROCESS_MEMORY_COUNTERS
BOOL(CALLBACK * PENUM_PAGE_FILE_CALLBACKA)(LPVOID, PENUM_PAGE_FILE_INFORMATION, LPCSTR)
Definition: psapi.h:89
DWORD WINAPI GetDeviceDriverFileNameA(LPVOID, LPSTR, DWORD)
Definition: psapi.c:668
DWORD SizeOfImage
Definition: compat.h:919
LPVOID lpBaseOfDll
Definition: compat.h:918
LPVOID EntryPoint
Definition: compat.h:920
SIZE_T PhysicalAvailable
Definition: psapi.h:70
SIZE_T QuotaNonPagedPoolUsage
Definition: psapi.h:58
SIZE_T QuotaPeakPagedPoolUsage
Definition: psapi.h:55
SIZE_T QuotaPeakNonPagedPoolUsage
Definition: psapi.h:57
SIZE_T PeakPagefileUsage
Definition: psapi.h:47
SIZE_T QuotaNonPagedPoolUsage
Definition: psapi.h:45
SIZE_T PeakWorkingSetSize
Definition: psapi.h:40
SIZE_T QuotaPeakNonPagedPoolUsage
Definition: psapi.h:44
SIZE_T QuotaPeakPagedPoolUsage
Definition: psapi.h:42
SIZE_T QuotaPagedPoolUsage
Definition: psapi.h:43
ULONG_PTR SIZE_T
Definition: typedefs.h:80
uint32_t * LPDWORD
Definition: typedefs.h:59
#define WINAPI
Definition: msvc.h:6
const char * LPCSTR
Definition: xmlstorage.h:183
char * LPSTR
Definition: xmlstorage.h:182
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185