4 * Copyright 1998 Patrik Stridvall
16 /***********************************************************************
17 * EmptyWorkingSet (PSAPI.1)
19 BOOL32 WINAPI EmptyWorkingSet32(HANDLE32 hProcess)
21 return SetProcessWorkingSetSize(hProcess, 0xFFFFFFFF, 0xFFFFFFFF);
24 /***********************************************************************
25 * EnumDeviceDrivers (PSAPI.2)
27 BOOL32 WINAPI EnumDeviceDrivers(
28 LPVOID *lpImageBase, DWORD cb, LPDWORD lpcbNeeded)
30 FIXME(psapi, "(%p, %ld, %p): stub\n", lpImageBase, cb, lpcbNeeded);
39 /***********************************************************************
40 * EnumProcesses (PSAPI.3)
42 BOOL32 WINAPI EnumProcesses(DWORD *lpidProcess, DWORD cb, DWORD *lpcbNeeded)
44 FIXME(psapi, "(%p, %ld, %p): stub\n", lpidProcess,cb, lpcbNeeded);
52 /***********************************************************************
53 * EnumProcessModules (PSAPI.4)
55 BOOL32 WINAPI EnumProcessModules(
56 HANDLE32 hProcess, HMODULE32 *lphModule, DWORD cb, LPDWORD lpcbNeeded)
58 FIXME(psapi, "(hProcess=0x%08x, %p, %ld, %p): stub\n",
59 hProcess, lphModule, cb, lpcbNeeded
68 /***********************************************************************
69 * GetDeviceDriverBaseName32A (PSAPI.5)
71 DWORD WINAPI GetDeviceDriverBaseName32A(
72 LPVOID ImageBase, LPSTR lpBaseName, DWORD nSize)
74 FIXME(psapi, "(%p, %s, %ld): stub\n",
75 ImageBase, debugstr_a(lpBaseName), nSize
78 if(lpBaseName && nSize)
84 /***********************************************************************
85 * GetDeviceDriverBaseName32W (PSAPI.6)
87 DWORD WINAPI GetDeviceDriverBaseName32W(
88 LPVOID ImageBase, LPWSTR lpBaseName, DWORD nSize)
90 FIXME(psapi, "(%p, %s, %ld): stub\n",
91 ImageBase, debugstr_w(lpBaseName), nSize
94 if(lpBaseName && nSize)
100 /***********************************************************************
101 * GetDeviceDriverFileName32A (PSAPI.7)
103 DWORD WINAPI GetDeviceDriverFileName32A(
104 LPVOID ImageBase, LPSTR lpFilename, DWORD nSize)
106 FIXME(psapi, "(%p, %s, %ld): stub\n",
107 ImageBase, debugstr_a(lpFilename), nSize
110 if(lpFilename && nSize)
111 lpFilename[0] = '\0';
116 /***********************************************************************
117 * GetDeviceDriverFileName32W (PSAPI.8)
119 DWORD WINAPI GetDeviceDriverFileName32W(
120 LPVOID ImageBase, LPWSTR lpFilename, DWORD nSize)
122 FIXME(psapi, "(%p, %s, %ld): stub\n",
123 ImageBase, debugstr_w(lpFilename), nSize
126 if(lpFilename && nSize)
127 lpFilename[0] = '\0';
132 /***********************************************************************
133 * GetMappedFileName32A (PSAPI.9)
135 DWORD WINAPI GetMappedFileName32A(
136 HANDLE32 hProcess, LPVOID lpv, LPSTR lpFilename, DWORD nSize)
138 FIXME(psapi, "(hProcess=0x%08x, %p, %s, %ld): stub\n",
139 hProcess, lpv, debugstr_a(lpFilename), nSize
142 if(lpFilename && nSize)
143 lpFilename[0] = '\0';
148 /***********************************************************************
149 * GetMappedFileName32W (PSAPI.10)
151 DWORD WINAPI GetMappedFileName32W(
152 HANDLE32 hProcess, LPVOID lpv, LPWSTR lpFilename, DWORD nSize)
154 FIXME(psapi, "(hProcess=0x%08x, %p, %s, %ld): stub\n",
155 hProcess, lpv, debugstr_w(lpFilename), nSize
158 if(lpFilename && nSize)
159 lpFilename[0] = '\0';
164 /***********************************************************************
165 * GetModuleBaseName32A (PSAPI.11)
167 DWORD WINAPI GetModuleBaseName32A(
168 HANDLE32 hProcess, HMODULE32 hModule, LPSTR lpBaseName, DWORD nSize)
170 FIXME(psapi, "(hProcess=0x%08x, hModule=0x%08x, %s, %ld): stub\n",
171 hProcess, hModule, debugstr_a(lpBaseName), nSize
174 if(lpBaseName && nSize)
175 lpBaseName[0] = '\0';
180 /***********************************************************************
181 * GetModuleBaseName32W (PSAPI.12)
183 DWORD WINAPI GetModuleBaseName32W(
184 HANDLE32 hProcess, HMODULE32 hModule, LPWSTR lpBaseName, DWORD nSize)
186 FIXME(psapi, "(hProcess=0x%08x, hModule=0x%08x, %s, %ld): stub\n",
187 hProcess, hModule, debugstr_w(lpBaseName), nSize);
189 if(lpBaseName && nSize)
190 lpBaseName[0] = '\0';
195 /***********************************************************************
196 * GetModuleFileNameEx32A (PSAPI.13)
198 DWORD WINAPI GetModuleFileNameEx32A(
199 HANDLE32 hProcess, HMODULE32 hModule, LPSTR lpFilename, DWORD nSize)
201 FIXME(psapi, "(hProcess=0x%08x,hModule=0x%08x, %s, %ld): stub\n",
202 hProcess, hModule, debugstr_a(lpFilename), nSize
205 if(lpFilename&&nSize)
211 /***********************************************************************
212 * GetModuleFileNameEx32W (PSAPI.14)
214 DWORD WINAPI GetModuleFileNameEx32W(
215 HANDLE32 hProcess, HMODULE32 hModule, LPWSTR lpFilename, DWORD nSize)
217 FIXME(psapi, "(hProcess=0x%08x,hModule=0x%08x, %s, %ld): stub\n",
218 hProcess, hModule, debugstr_w(lpFilename), nSize
221 if(lpFilename && nSize)
222 lpFilename[0] = '\0';
227 /***********************************************************************
228 * GetModuleInformation32 (PSAPI.15)
230 BOOL32 WINAPI GetModuleInformation32(
231 HANDLE32 hProcess, HMODULE32 hModule, LPMODULEINFO32 lpmodinfo, DWORD cb)
233 FIXME(psapi, "(hProcess=0x%08x, hModule=0x%08x, %p, %ld): stub\n",
234 hProcess, hModule, lpmodinfo, cb
237 memset(lpmodinfo, 0, cb);
242 /***********************************************************************
243 * GetProcessMemoryInfo32 (PSAPI.16)
245 BOOL32 WINAPI GetProcessMemoryInfo32(
246 HANDLE32 Process, PPROCESS_MEMORY_COUNTERS32 ppsmemCounters, DWORD cb)
248 FIXME(psapi, "(hProcess=0x%08x, %p, %ld): stub\n",
249 Process, ppsmemCounters, cb
252 memset(ppsmemCounters, 0, cb);
257 /***********************************************************************
258 * GetWsChanges32 (PSAPI.17)
260 BOOL32 WINAPI GetWsChanges32(
261 HANDLE32 hProcess, PPSAPI_WS_WATCH_INFORMATION32 lpWatchInfo, DWORD cb)
263 FIXME(psapi, "(hProcess=0x%08x, %p, %ld): stub\n",
264 hProcess, lpWatchInfo, cb
267 memset(lpWatchInfo, 0, cb);
272 /***********************************************************************
273 * InitializeProcessForWsWatch32 (PSAPI.18)
275 BOOL32 WINAPI InitializeProcessForWsWatch32(HANDLE32 hProcess)
277 FIXME(psapi, "(hProcess=0x%08x): stub\n", hProcess);
282 /***********************************************************************
283 * QueryWorkingSet32 (PSAPI.?)
285 * I haven't been able to find the ordinal for this function,
286 * This means it can't be called from outside the DLL.
288 BOOL32 WINAPI QueryWorkingSet32(HANDLE32 hProcess, LPVOID pv, DWORD cb)
290 FIXME(psapi, "(hProcess=0x%08x, %p, %ld)", hProcess, pv, cb);
293 ((DWORD *) pv)[0] = 0; /* Empty WorkingSet */