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
|
#ifndef __WINE_PSAPI_H
|
||||||
#define __WINE_PSAPI_H
|
#define __WINE_PSAPI_H
|
||||||
|
|
||||||
|
#ifndef PSAPI_VERSION
|
||||||
|
#define PSAPI_VERSION 2
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct _MODULEINFO {
|
typedef struct _MODULEINFO {
|
||||||
LPVOID lpBaseOfDll;
|
LPVOID lpBaseOfDll;
|
||||||
DWORD SizeOfImage;
|
DWORD SizeOfImage;
|
||||||
|
@ -79,6 +83,36 @@ typedef BOOL (*PENUM_PAGE_FILE_CALLBACKW) (LPVOID, PENUM_PAGE_FILE_INFORMATION,
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#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 EnumProcesses(DWORD*, DWORD, DWORD*);
|
||||||
BOOL WINAPI EnumProcessModules(HANDLE, HMODULE*, DWORD, LPDWORD);
|
BOOL WINAPI EnumProcessModules(HANDLE, HMODULE*, DWORD, LPDWORD);
|
||||||
BOOL WINAPI EnumProcessModulesEx(HANDLE, HMODULE*, DWORD, LPDWORD, DWORD);
|
BOOL WINAPI EnumProcessModulesEx(HANDLE, HMODULE*, DWORD, LPDWORD, DWORD);
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#define COBJMACROS
|
#define COBJMACROS
|
||||||
#define CONST_VTABLE
|
#define CONST_VTABLE
|
||||||
|
|
||||||
|
#define PSAPI_VERSION 1
|
||||||
#include <initguid.h>
|
#include <initguid.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <psapi.h>
|
#include <psapi.h>
|
||||||
|
|
Loading…
Reference in New Issue