2 * Declarations for PSAPI
4 * Copyright (C) 1998 Patrik Stridvall
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WINE_PSAPI_H
22 #define __WINE_PSAPI_H
26 typedef struct _MODULEINFO
{
30 } MODULEINFO
, *LPMODULEINFO
;
32 typedef struct _PROCESS_MEMORY_COUNTERS
{
35 DWORD PeakWorkingSetSize
;
37 DWORD QuotaPeakPagedPoolUsage
;
38 DWORD QuotaPagedPoolUsage
;
39 DWORD QuotaPeakNonPagedPoolUsage
;
40 DWORD QuotaNonPagedPoolUsage
;
42 DWORD PeakPagefileUsage
;
43 } PROCESS_MEMORY_COUNTERS
;
44 typedef PROCESS_MEMORY_COUNTERS
*PPROCESS_MEMORY_COUNTERS
;
46 typedef struct _PSAPI_WS_WATCH_INFORMATION
{
49 } PSAPI_WS_WATCH_INFORMATION
, *PPSAPI_WS_WATCH_INFORMATION
;
51 typedef struct _PERFORMACE_INFORMATION
{
57 SIZE_T PhysicalAvailable
;
61 SIZE_T KernelNonpaged
;
66 } PERFORMACE_INFORMATION
, *PPERFORMACE_INFORMATION
;
68 typedef struct _ENUM_PAGE_FILE_INFORMATION
{
74 } ENUM_PAGE_FILE_INFORMATION
, *PENUM_PAGE_FILE_INFORMATION
;
76 typedef BOOL (*PENUM_PAGE_FILE_CALLBACKA
) (LPVOID
, PENUM_PAGE_FILE_INFORMATION
, LPCSTR
);
77 typedef BOOL (*PENUM_PAGE_FILE_CALLBACKW
) (LPVOID
, PENUM_PAGE_FILE_INFORMATION
, LPCWSTR
);
78 #define PENUM_PAGE_FILE_CALLBACK WINELIB_NAME_AW(PENUM_PAGE_FILE_CALLBACK)
84 BOOL WINAPI
EnumProcesses(DWORD
*, DWORD
, DWORD
*);
85 BOOL WINAPI
EnumProcessModules(HANDLE
, HMODULE
*, DWORD
, LPDWORD
);
86 DWORD WINAPI
GetModuleBaseNameA(HANDLE
, HMODULE
, LPSTR
, DWORD
);
87 DWORD WINAPI
GetModuleBaseNameW(HANDLE
, HMODULE
, LPWSTR
, DWORD
);
88 #define GetModuleBaseName WINELIB_NAME_AW(GetModuleBaseName)
89 DWORD WINAPI
GetModuleFileNameExA(HANDLE
, HMODULE
, LPSTR
, DWORD
);
90 DWORD WINAPI
GetModuleFileNameExW(HANDLE
, HMODULE
, LPWSTR
, DWORD
);
91 #define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName)
92 BOOL WINAPI
GetModuleInformation(HANDLE
, HMODULE
, LPMODULEINFO
, DWORD
);
93 BOOL WINAPI
EmptyWorkingSet(HANDLE
);
94 BOOL WINAPI
QueryWorkingSet(HANDLE
, PVOID
, DWORD
);
95 BOOL WINAPI
InitializeProcessForWsWatch(HANDLE
);
96 BOOL WINAPI
GetWsChanges(HANDLE
, PPSAPI_WS_WATCH_INFORMATION
, DWORD
);
97 DWORD WINAPI
GetMappedFileNameW(HANDLE
, LPVOID
, LPWSTR
, DWORD
);
98 DWORD WINAPI
GetMappedFileNameA(HANDLE
, LPVOID
, LPSTR
, DWORD
);
99 #define GetMappedFileName WINELIB_NAME_AW(GetMappedFileName)
100 BOOL WINAPI
EnumDeviceDrivers(LPVOID
*, DWORD
, LPDWORD
);
101 DWORD WINAPI
GetDeviceDriverBaseNameA(LPVOID
, LPSTR
, DWORD
);
102 DWORD WINAPI
GetDeviceDriverBaseNameW(LPVOID
, LPWSTR
, DWORD
);
103 #define GetDeviceDriverBaseName WINELIB_NAME_AW(GetDeviceDriverBaseName)
104 DWORD WINAPI
GetDeviceDriverFileNameA(LPVOID
, LPSTR
, DWORD
);
105 DWORD WINAPI
GetDeviceDriverFileNameW(LPVOID
, LPWSTR
, DWORD
);
106 #define GetDeviceDriverFileName WINELIB_NAME_AW(GetDeviceDriverFileName)
107 BOOL WINAPI
GetProcessMemoryInfo(HANDLE
, PPROCESS_MEMORY_COUNTERS
, DWORD
);
108 BOOL WINAPI
GetPerformanceInfo(PPERFORMACE_INFORMATION
, DWORD
);
109 BOOL WINAPI
EnumPageFilesA(PENUM_PAGE_FILE_CALLBACKA
, LPVOID
);
110 BOOL WINAPI
EnumPageFilesW(PENUM_PAGE_FILE_CALLBACKW
, LPVOID
);
111 #define EnumPageFiles WINELIB_NAME_AW(EnumPageFiles)
112 DWORD WINAPI
GetProcessImageFileNameA(HANDLE
, LPSTR
, DWORD
);
113 DWORD WINAPI
GetProcessImageFileNameW(HANDLE
, LPWSTR
, DWORD
);
114 #define GetProcessImageFileName WINELIB_NAME_AW(GetProcessImageFileName)
120 #endif /* __WINE_PSAPI_H */