Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
853b4148
Commit
853b4148
authored
Mar 03, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
>
parent
6256956a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
psapi.h
include/psapi.h
+34
-0
run.c
programs/wscript/tests/run.c
+1
-0
No files found.
include/psapi.h
View file @
853b4148
...
...
@@ -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
);
...
...
programs/wscript/tests/run.c
View file @
853b4148
...
...
@@ -21,6 +21,7 @@
#define COBJMACROS
#define CONST_VTABLE
#define PSAPI_VERSION 1
#include <initguid.h>
#include <windows.h>
#include <psapi.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment