mirror of
https://github.com/reactos/wine.git
synced 2025-01-19 02:02:18 +00:00
psapi.h: Added support for PSAPI_VERSION version 2.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6256956a41
commit
853b4148dd
@ -21,6 +21,10 @@
|
||||
#ifndef __WINE_PSAPI_H
|
||||
#define __WINE_PSAPI_H
|
||||
|
||||
#ifndef PSAPI_VERSION
|
||||
#define PSAPI_VERSION 2
|
||||
#endif
|
||||
|
||||
typedef struct _MODULEINFO {
|
||||
LPVOID lpBaseOfDll;
|
||||
DWORD SizeOfImage;
|
||||
@ -79,6 +83,36 @@ typedef BOOL (*PENUM_PAGE_FILE_CALLBACKW) (LPVOID, PENUM_PAGE_FILE_INFORMATION,
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if PSAPI_VERSION > 1
|
||||
#define EnumProcesses K32EnumProcesses
|
||||
#define EnumProcessModules K32EnumProcessModules
|
||||
#define EnumProcessModulesEx K32EnumProcessModulesEx
|
||||
#define GetModuleBaseNameA K32GetModuleBaseNameA
|
||||
#define GetModuleBaseNameW K32GetModuleBaseNameW
|
||||
#define GetModuleFileNameExA K32GetModuleFileNameExA
|
||||
#define GetModuleFileNameExW K32GetModuleFileNameExW
|
||||
#define GetModuleInformation K32GetModuleInformation
|
||||
#define EmptyWorkingSet K32EmptyWorkingSet
|
||||
#define QueryWorkingSet K32QueryWorkingSet
|
||||
#define QueryWorkingSetEx K32QueryWorkingSetEx
|
||||
#define InitializeProcessForWsWatch K32InitializeProcessForWsWatch
|
||||
#define GetWsChanges K32GetWsChanges
|
||||
#define GetWsChangesEx K32GetWsChangesEx
|
||||
#define GetMappedFileNameW K32GetMappedFileNameW
|
||||
#define GetMappedFileNameA K32GetMappedFileNameA
|
||||
#define EnumDeviceDrivers K32EnumDeviceDrivers
|
||||
#define GetDeviceDriverBaseNameA K32GetDeviceDriverBaseNameA
|
||||
#define GetDeviceDriverBaseNameW K32GetDeviceDriverBaseNameW
|
||||
#define GetDeviceDriverFileNameA K32GetDeviceDriverFileNameA
|
||||
#define GetDeviceDriverFileNameW K32GetDeviceDriverFileNameW
|
||||
#define GetProcessMemoryInfo K32GetProcessMemoryInfo
|
||||
#define GetPerformanceInfo K32GetPerformanceInfo
|
||||
#define EnumPageFilesW K32EnumPageFilesW
|
||||
#define EnumPageFilesA K32EnumPageFilesA
|
||||
#define GetProcessImageFileNameA K32GetProcessImageFileNameA
|
||||
#define GetProcessImageFileNameW K32GetProcessImageFileNameW
|
||||
#endif
|
||||
|
||||
BOOL WINAPI EnumProcesses(DWORD*, DWORD, DWORD*);
|
||||
BOOL WINAPI EnumProcessModules(HANDLE, HMODULE*, DWORD, LPDWORD);
|
||||
BOOL WINAPI EnumProcessModulesEx(HANDLE, HMODULE*, DWORD, LPDWORD, DWORD);
|
||||
|
@ -21,6 +21,7 @@
|
||||
#define COBJMACROS
|
||||
#define CONST_VTABLE
|
||||
|
||||
#define PSAPI_VERSION 1
|
||||
#include <initguid.h>
|
||||
#include <windows.h>
|
||||
#include <psapi.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user