4 * Copyright 1998 Patrik Stridvall
15 /***********************************************************************
16 * EmptyWorkingSet (PSAPI.1)
18 BOOL WINAPI EmptyWorkingSet(HANDLE hProcess)
20 return SetProcessWorkingSetSize(hProcess, 0xFFFFFFFF, 0xFFFFFFFF);
23 /***********************************************************************
24 * EnumDeviceDrivers (PSAPI.2)
26 BOOL WINAPI EnumDeviceDrivers(
27 LPVOID *lpImageBase, DWORD cb, LPDWORD lpcbNeeded)
29 FIXME(psapi, "(%p, %ld, %p): stub\n", lpImageBase, cb, lpcbNeeded);
38 /***********************************************************************
39 * EnumProcesses (PSAPI.3)
41 BOOL WINAPI EnumProcesses(DWORD *lpidProcess, DWORD cb, DWORD *lpcbNeeded)
43 FIXME(psapi, "(%p, %ld, %p): stub\n", lpidProcess,cb, lpcbNeeded);
51 /***********************************************************************
52 * EnumProcessModules (PSAPI.4)
54 BOOL WINAPI EnumProcessModules(
55 HANDLE hProcess, HMODULE *lphModule, DWORD cb, LPDWORD lpcbNeeded)
57 FIXME(psapi, "(hProcess=0x%08x, %p, %ld, %p): stub\n",
58 hProcess, lphModule, cb, lpcbNeeded
67 /***********************************************************************
68 * GetDeviceDriverBaseName32A (PSAPI.5)
70 DWORD WINAPI GetDeviceDriverBaseNameA(
71 LPVOID ImageBase, LPSTR lpBaseName, DWORD nSize)
73 FIXME(psapi, "(%p, %s, %ld): stub\n",
74 ImageBase, debugstr_a(lpBaseName), nSize
77 if(lpBaseName && nSize)
83 /***********************************************************************
84 * GetDeviceDriverBaseName32W (PSAPI.6)
86 DWORD WINAPI GetDeviceDriverBaseNameW(
87 LPVOID ImageBase, LPWSTR lpBaseName, DWORD nSize)
89 FIXME(psapi, "(%p, %s, %ld): stub\n",
90 ImageBase, debugstr_w(lpBaseName), nSize
93 if(lpBaseName && nSize)
99 /***********************************************************************
100 * GetDeviceDriverFileName32A (PSAPI.7)
102 DWORD WINAPI GetDeviceDriverFileNameA(
103 LPVOID ImageBase, LPSTR lpFilename, DWORD nSize)
105 FIXME(psapi, "(%p, %s, %ld): stub\n",
106 ImageBase, debugstr_a(lpFilename), nSize
109 if(lpFilename && nSize)
110 lpFilename[0] = '\0';
115 /***********************************************************************
116 * GetDeviceDriverFileName32W (PSAPI.8)
118 DWORD WINAPI GetDeviceDriverFileNameW(
119 LPVOID ImageBase, LPWSTR lpFilename, DWORD nSize)
121 FIXME(psapi, "(%p, %s, %ld): stub\n",
122 ImageBase, debugstr_w(lpFilename), nSize
125 if(lpFilename && nSize)
126 lpFilename[0] = '\0';
131 /***********************************************************************
132 * GetMappedFileName32A (PSAPI.9)
134 DWORD WINAPI GetMappedFileNameA(
135 HANDLE hProcess, LPVOID lpv, LPSTR lpFilename, DWORD nSize)
137 FIXME(psapi, "(hProcess=0x%08x, %p, %s, %ld): stub\n",
138 hProcess, lpv, debugstr_a(lpFilename), nSize
141 if(lpFilename && nSize)
142 lpFilename[0] = '\0';
147 /***********************************************************************
148 * GetMappedFileName32W (PSAPI.10)
150 DWORD WINAPI GetMappedFileNameW(
151 HANDLE hProcess, LPVOID lpv, LPWSTR lpFilename, DWORD nSize)
153 FIXME(psapi, "(hProcess=0x%08x, %p, %s, %ld): stub\n",
154 hProcess, lpv, debugstr_w(lpFilename), nSize
157 if(lpFilename && nSize)
158 lpFilename[0] = '\0';
163 /***********************************************************************
164 * GetModuleBaseName32A (PSAPI.11)
166 DWORD WINAPI GetModuleBaseNameA(
167 HANDLE hProcess, HMODULE hModule, LPSTR lpBaseName, DWORD nSize)
169 FIXME(psapi, "(hProcess=0x%08x, hModule=0x%08x, %s, %ld): stub\n",
170 hProcess, hModule, debugstr_a(lpBaseName), nSize
173 if(lpBaseName && nSize)
174 lpBaseName[0] = '\0';
179 /***********************************************************************
180 * GetModuleBaseName32W (PSAPI.12)
182 DWORD WINAPI GetModuleBaseNameW(
183 HANDLE hProcess, HMODULE hModule, LPWSTR lpBaseName, DWORD nSize)
185 FIXME(psapi, "(hProcess=0x%08x, hModule=0x%08x, %s, %ld): stub\n",
186 hProcess, hModule, debugstr_w(lpBaseName), nSize);
188 if(lpBaseName && nSize)
189 lpBaseName[0] = '\0';
194 /***********************************************************************
195 * GetModuleFileNameEx32A (PSAPI.13)
197 DWORD WINAPI GetModuleFileNameExA(
198 HANDLE hProcess, HMODULE hModule, LPSTR lpFilename, DWORD nSize)
200 FIXME(psapi, "(hProcess=0x%08x,hModule=0x%08x, %s, %ld): stub\n",
201 hProcess, hModule, debugstr_a(lpFilename), nSize
204 if(lpFilename&&nSize)
210 /***********************************************************************
211 * GetModuleFileNameEx32W (PSAPI.14)
213 DWORD WINAPI GetModuleFileNameExW(
214 HANDLE hProcess, HMODULE hModule, LPWSTR lpFilename, DWORD nSize)
216 FIXME(psapi, "(hProcess=0x%08x,hModule=0x%08x, %s, %ld): stub\n",
217 hProcess, hModule, debugstr_w(lpFilename), nSize
220 if(lpFilename && nSize)
221 lpFilename[0] = '\0';
226 /***********************************************************************
227 * GetModuleInformation32 (PSAPI.15)
229 BOOL WINAPI GetModuleInformation(
230 HANDLE hProcess, HMODULE hModule, LPMODULEINFO lpmodinfo, DWORD cb)
232 FIXME(psapi, "(hProcess=0x%08x, hModule=0x%08x, %p, %ld): stub\n",
233 hProcess, hModule, lpmodinfo, cb
236 memset(lpmodinfo, 0, cb);
241 /***********************************************************************
242 * GetProcessMemoryInfo32 (PSAPI.16)
244 BOOL WINAPI GetProcessMemoryInfo(
245 HANDLE Process, PPROCESS_MEMORY_COUNTERS ppsmemCounters, DWORD cb)
247 FIXME(psapi, "(hProcess=0x%08x, %p, %ld): stub\n",
248 Process, ppsmemCounters, cb
251 memset(ppsmemCounters, 0, cb);
256 /***********************************************************************
257 * GetWsChanges32 (PSAPI.17)
259 BOOL WINAPI GetWsChanges(
260 HANDLE hProcess, PPSAPI_WS_WATCH_INFORMATION lpWatchInfo, DWORD cb)
262 FIXME(psapi, "(hProcess=0x%08x, %p, %ld): stub\n",
263 hProcess, lpWatchInfo, cb
266 memset(lpWatchInfo, 0, cb);
271 /***********************************************************************
272 * InitializeProcessForWsWatch32 (PSAPI.18)
274 BOOL WINAPI InitializeProcessForWsWatch(HANDLE hProcess)
276 FIXME(psapi, "(hProcess=0x%08x): stub\n", hProcess);
281 /***********************************************************************
282 * QueryWorkingSet32 (PSAPI.?)
284 * I haven't been able to find the ordinal for this function,
285 * This means it can't be called from outside the DLL.
287 BOOL WINAPI QueryWorkingSet(HANDLE hProcess, LPVOID pv, DWORD cb)
289 FIXME(psapi, "(hProcess=0x%08x, %p, %ld)", hProcess, pv, cb);
292 ((DWORD *) pv)[0] = 0; /* Empty WorkingSet */