1
{******************************************************************************}
3
{ Process Status API interface Unit for Object Pascal }
5
{ Portions created by Microsoft are Copyright (C) 1995-2001 Microsoft }
6
{ Corporation. All Rights Reserved. }
8
{ The original file is: psapi.h, released June 2000. The original Pascal }
9
{ code is: PsApi.pas, released December 2000. The initial developer of the }
10
{ Pascal code is Marcel van Brakel (brakelm att chello dott nl). }
12
{ Portions created by Marcel van Brakel are Copyright (C) 1999-2001 }
13
{ Marcel van Brakel. All Rights Reserved. }
15
{ Obtained through: Joint Endeavour of Delphi Innovators (Project JEDI) }
17
{ You may retrieve the latest version of this file at the Project JEDI }
18
{ APILIB home page, located at http://jedi-apilib.sourceforge.net }
20
{ The contents of this file are used with permission, subject to the Mozilla }
21
{ Public License Version 1.1 (the "License"); you may not use this file except }
22
{ in compliance with the License. You may obtain a copy of the License at }
23
{ http://www.mozilla.org/MPL/MPL-1.1.html }
25
{ Software distributed under the License is distributed on an "AS IS" basis, }
26
{ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for }
27
{ the specific language governing rights and limitations under the License. }
29
{ Alternatively, the contents of this file may be used under the terms of the }
30
{ GNU Lesser General Public License (the "LGPL License"), in which case the }
31
{ provisions of the LGPL License are applicable instead of those above. }
32
{ If you wish to allow use of your version of this file only under the terms }
33
{ of the LGPL License and not to allow others to use your version of this file }
34
{ under the MPL, indicate your decision by deleting the provisions above and }
35
{ replace them with the notice and other provisions required by the LGPL }
36
{ License. If you do not delete the provisions above, a recipient may use }
37
{ your version of this file under either the MPL or the LGPL License. }
39
{ For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html }
41
{******************************************************************************}
43
// $Id: JwaPsApi.pas,v 1.10 2005/09/06 16:36:50 marquardt Exp $
50
{$HPPEMIT '#include <psapi.h>'}
60
function EnumProcesses(lpidProcess: LPDWORD; cb: DWORD; var cbNeeded: DWORD): BOOL; stdcall;
61
{$EXTERNALSYM EnumProcesses}
63
function EnumProcessModules(hProcess: HANDLE; lphModule: PHMODULE; cb: DWORD;
64
var lpcbNeeded: DWORD): BOOL; stdcall;
65
{$EXTERNALSYM EnumProcessModules}
67
function GetModuleBaseNameA(hProcess: HANDLE; hModule: HMODULE; lpBaseName: LPSTR;
68
nSize: DWORD): DWORD; stdcall;
69
{$EXTERNALSYM GetModuleBaseNameA}
70
function GetModuleBaseNameW(hProcess: HANDLE; hModule: HMODULE; lpBaseName: LPWSTR;
71
nSize: DWORD): DWORD; stdcall;
72
{$EXTERNALSYM GetModuleBaseNameW}
73
function GetModuleBaseName(hProcess: HANDLE; hModule: HMODULE; lpBaseName: LPTSTR;
74
nSize: DWORD): DWORD; stdcall;
75
{$EXTERNALSYM GetModuleBaseName}
77
function GetModuleFileNameExA(hProcess: HANDLE; hModule: HMODULE; lpFilename: LPSTR;
78
nSize: DWORD): DWORD; stdcall;
79
{$EXTERNALSYM GetModuleFileNameExA}
80
function GetModuleFileNameExW(hProcess: HANDLE; hModule: HMODULE; lpFilename: LPWSTR;
81
nSize: DWORD): DWORD; stdcall;
82
{$EXTERNALSYM GetModuleFileNameExW}
83
function GetModuleFileNameEx(hProcess: HANDLE; hModule: HMODULE; lpFilename: LPTSTR;
84
nSize: DWORD): DWORD; stdcall;
85
{$EXTERNALSYM GetModuleFileNameEx}
88
LPMODULEINFO = ^MODULEINFO;
89
{$EXTERNALSYM LPMODULEINFO}
90
_MODULEINFO = packed record
95
{$EXTERNALSYM _MODULEINFO}
96
MODULEINFO = _MODULEINFO;
97
{$EXTERNALSYM MODULEINFO}
98
TModuleInfo = MODULEINFO;
99
PModuleInfo = LPMODULEINFO;
101
function GetModuleInformation(hProcess: HANDLE; hModule: HMODULE;
102
var lpmodinfo: MODULEINFO; cb: DWORD): BOOL; stdcall;
103
{$EXTERNALSYM GetModuleInformation}
105
function EmptyWorkingSet(hProcess: HANDLE): BOOL; stdcall;
106
{$EXTERNALSYM EmptyWorkingSet}
108
function QueryWorkingSet(hProcess: HANDLE; pv: PVOID; cb: DWORD): BOOL; stdcall;
109
{$EXTERNALSYM QueryWorkingSet}
111
function InitializeProcessForWsWatch(hProcess: HANDLE): BOOL; stdcall;
112
{$EXTERNALSYM InitializeProcessForWsWatch}
115
PPSAPI_WS_WATCH_INFORMATION = ^PSAPI_WS_WATCH_INFORMATION;
116
{$EXTERNALSYM PPSAPI_WS_WATCH_INFORMATION}
117
_PSAPI_WS_WATCH_INFORMATION = packed record
121
{$EXTERNALSYM _PSAPI_WS_WATCH_INFORMATION}
122
PSAPI_WS_WATCH_INFORMATION = _PSAPI_WS_WATCH_INFORMATION;
123
{$EXTERNALSYM PSAPI_WS_WATCH_INFORMATION}
124
TPsApiWsWatchInformation = PSAPI_WS_WATCH_INFORMATION;
125
PPsApiWsWatchInformation = PPSAPI_WS_WATCH_INFORMATION;
127
function GetWsChanges(hProcess: HANDLE; var lpWatchInfo: PSAPI_WS_WATCH_INFORMATION;
128
cb: DWORD): BOOL; stdcall;
129
{$EXTERNALSYM GetWsChanges}
131
function GetMappedFileNameW(hProcess: HANDLE; lpv: LPVOID; lpFilename: LPWSTR;
132
nSize: DWORD): DWORD; stdcall;
133
{$EXTERNALSYM GetMappedFileNameW}
134
function GetMappedFileNameA(hProcess: HANDLE; lpv: LPVOID; lpFilename: LPSTR;
135
nSize: DWORD): DWORD; stdcall;
136
{$EXTERNALSYM GetMappedFileNameA}
137
function GetMappedFileName(hProcess: HANDLE; lpv: LPVOID; lpFilename: LPTSTR;
138
nSize: DWORD): DWORD; stdcall;
139
{$EXTERNALSYM GetMappedFileName}
141
function EnumDeviceDrivers(lpImageBase: LPLPVOID; cb: DWORD; var lpcbNeeded: DWORD): BOOL; stdcall;
142
{$EXTERNALSYM EnumDeviceDrivers}
144
function GetDeviceDriverBaseNameA(ImageBase: LPVOID; lpBaseName: LPSTR;
145
nSize: DWORD): DWORD; stdcall;
146
{$EXTERNALSYM GetDeviceDriverBaseNameA}
147
function GetDeviceDriverBaseNameW(ImageBase: LPVOID; lpBaseName: LPWSTR;
148
nSize: DWORD): DWORD; stdcall;
149
{$EXTERNALSYM GetDeviceDriverBaseNameW}
150
function GetDeviceDriverBaseName(ImageBase: LPVOID; lpBaseName: LPTSTR;
151
nSize: DWORD): DWORD; stdcall;
152
{$EXTERNALSYM GetDeviceDriverBaseName}
154
function GetDeviceDriverFileNameA(ImageBase: LPVOID; lpFilename: LPSTR;
155
nSize: DWORD): DWORD; stdcall;
156
{$EXTERNALSYM GetDeviceDriverFileNameA}
157
function GetDeviceDriverFileNameW(ImageBase: LPVOID; lpFilename: LPWSTR;
158
nSize: DWORD): DWORD; stdcall;
159
{$EXTERNALSYM GetDeviceDriverFileNameW}
160
function GetDeviceDriverFileName(ImageBase: LPVOID; lpFilename: LPTSTR;
161
nSize: DWORD): DWORD; stdcall;
162
{$EXTERNALSYM GetDeviceDriverFileName}
164
// Structure for GetProcessMemoryInfo()
167
PPROCESS_MEMORY_COUNTERS = ^PROCESS_MEMORY_COUNTERS;
168
{$EXTERNALSYM PPROCESS_MEMORY_COUNTERS}
169
_PROCESS_MEMORY_COUNTERS = packed record
171
PageFaultCount: DWORD;
172
PeakWorkingSetSize: SIZE_T;
173
WorkingSetSize: SIZE_T;
174
QuotaPeakPagedPoolUsage: SIZE_T;
175
QuotaPagedPoolUsage: SIZE_T;
176
QuotaPeakNonPagedPoolUsage: SIZE_T;
177
QuotaNonPagedPoolUsage: SIZE_T;
178
PagefileUsage: SIZE_T;
179
PeakPagefileUsage: SIZE_T;
181
{$EXTERNALSYM _PROCESS_MEMORY_COUNTERS}
182
PROCESS_MEMORY_COUNTERS = _PROCESS_MEMORY_COUNTERS;
183
{$EXTERNALSYM PROCESS_MEMORY_COUNTERS}
184
TProcessMemoryCounters = PROCESS_MEMORY_COUNTERS;
185
PProcessMemoryCounters = PPROCESS_MEMORY_COUNTERS;
187
_PROCESS_MEMORY_COUNTERS_EX = record
189
PageFaultCount: DWORD;
190
PeakWorkingSetSize: SIZE_T;
191
WorkingSetSize: SIZE_T;
192
QuotaPeakPagedPoolUsage: SIZE_T;
193
QuotaPagedPoolUsage: SIZE_T;
194
QuotaPeakNonPagedPoolUsage: SIZE_T;
195
QuotaNonPagedPoolUsage: SIZE_T;
196
PagefileUsage: SIZE_T;
197
PeakPagefileUsage: SIZE_T;
198
PrivateUsage: SIZE_T;
200
{$EXTERNALSYM _PROCESS_MEMORY_COUNTERS_EX}
201
PROCESS_MEMORY_COUNTERS_EX = _PROCESS_MEMORY_COUNTERS_EX;
202
{$EXTERNALSYM PROCESS_MEMORY_COUNTERS_EX}
203
PPROCESS_MEMORY_COUNTERS_EX = ^PROCESS_MEMORY_COUNTERS_EX;
204
{$EXTERNALSYM PPROCESS_MEMORY_COUNTERS_EX}
205
TProcessMemoryCountersEx = PROCESS_MEMORY_COUNTERS_EX;
207
function GetProcessMemoryInfo(Process: HANDLE;
208
var ppsmemCounters: PROCESS_MEMORY_COUNTERS; cb: DWORD): BOOL; stdcall;
209
{$EXTERNALSYM GetProcessMemoryInfo}
212
_PERFORMANCE_INFORMATION = record
217
PhysicalTotal: SIZE_T;
218
PhysicalAvailable: SIZE_T;
222
KernelNonpaged: SIZE_T;
228
{$EXTERNALSYM _PERFORMANCE_INFORMATION}
229
PERFORMANCE_INFORMATION = _PERFORMANCE_INFORMATION;
230
{$EXTERNALSYM PERFORMANCE_INFORMATION}
231
PPERFORMANCE_INFORMATION = ^PERFORMANCE_INFORMATION;
232
{$EXTERNALSYM PPERFORMANCE_INFORMATION}
233
TPerformanceInformation = PERFORMANCE_INFORMATION;
234
PPerformanceInformation = PPERFORMANCE_INFORMATION;
238
Please note that this function, unlike what the Platform SDK documents, is _not_ available for Windows 2000!!!
239
It is available starting with Windows XP and Windows.NET Server.
240
If needed, you can relatively easily clone the functionality of this function by using the performance monitor
241
API (either through the HKEY_PERFORMANCE_DATA registry interface or using the Performance Data Helper API)
244
function GetPerformanceInfo(pPerformanceInformation: PPERFORMANCE_INFORMATION;
245
cb: DWORD): BOOL; stdcall;
246
{$EXTERNALSYM GetPerformanceInfo}
249
_ENUM_PAGE_FILE_INFORMATION = record
256
{$EXTERNALSYM _ENUM_PAGE_FILE_INFORMATION}
257
ENUM_PAGE_FILE_INFORMATION = _ENUM_PAGE_FILE_INFORMATION;
258
{$EXTERNALSYM ENUM_PAGE_FILE_INFORMATION}
259
PENUM_PAGE_FILE_INFORMATION = ^ENUM_PAGE_FILE_INFORMATION;
260
TEnumPageFileInformation = ENUM_PAGE_FILE_INFORMATION;
261
PEnumPageFileInformation = PENUM_PAGE_FILE_INFORMATION;
264
PENUM_PAGE_FILE_CALLBACKW = function(pContext: LPVOID;
265
pPageFileInfo: PENUM_PAGE_FILE_INFORMATION; lpFilename: LPCWSTR): BOOL; stdcall;
266
{$EXTERNALSYM PENUM_PAGE_FILE_CALLBACKW}
267
PENUM_PAGE_FILE_CALLBACKA = function(pContext: LPVOID;
268
pPageFileInfo: PENUM_PAGE_FILE_INFORMATION; lpFilename: LPCSTR): BOOL; stdcall;
269
{$EXTERNALSYM PENUM_PAGE_FILE_CALLBACKA}
271
PENUM_PAGE_FILE_CALLBACK = PENUM_PAGE_FILE_CALLBACKW;
272
{$EXTERNALSYM PENUM_PAGE_FILE_CALLBACK}
274
PENUM_PAGE_FILE_CALLBACK = PENUM_PAGE_FILE_CALLBACKA;
275
{$EXTERNALSYM PENUM_PAGE_FILE_CALLBACK}
278
function EnumPageFilesW(pCallBackRoutine: PENUM_PAGE_FILE_CALLBACKW; pContext: LPVOID): BOOL; stdcall;
279
{$EXTERNALSYM EnumPageFilesW}
280
function EnumPageFilesA(pCallBackRoutine: PENUM_PAGE_FILE_CALLBACKA; pContext: LPVOID): BOOL; stdcall;
281
{$EXTERNALSYM EnumPageFilesA}
282
function EnumPageFiles(pCallBackRoutine: PENUM_PAGE_FILE_CALLBACK; pContext: LPVOID): BOOL; stdcall;
283
{$EXTERNALSYM EnumPageFiles}
285
function GetProcessImageFileNameA(hProcess: HANDLE; lpImageFileName: LPSTR;
286
nSize: DWORD): DWORD; stdcall;
287
{$EXTERNALSYM GetProcessImageFileNameA}
288
function GetProcessImageFileNameW(hProcess: HANDLE; lpImageFileName: LPWSTR;
289
nSize: DWORD): DWORD; stdcall;
290
{$EXTERNALSYM GetProcessImageFileNameW}
291
function GetProcessImageFileName(hProcess: HANDLE; lpImageFileName: LPTSTR;
292
nSize: DWORD): DWORD; stdcall;
293
{$EXTERNALSYM GetProcessImageFileName}
300
{$IFDEF DYNAMIC_LINK}
303
_EnumProcesses: Pointer;
305
function EnumProcesses;
307
GetProcedureAddress(_EnumProcesses, PsapiLib, 'EnumProcesses');
316
_EnumProcessModules: Pointer;
318
function EnumProcessModules;
320
GetProcedureAddress(_EnumProcessModules, PsapiLib, 'EnumProcessModules');
324
JMP [_EnumProcessModules]
329
_GetModuleBaseNameA: Pointer;
331
function GetModuleBaseNameA;
333
GetProcedureAddress(_GetModuleBaseNameA, PsapiLib, 'GetModuleBaseNameA');
337
JMP [_GetModuleBaseNameA]
342
_GetModuleBaseNameW: Pointer;
344
function GetModuleBaseNameW;
346
GetProcedureAddress(_GetModuleBaseNameW, PsapiLib, 'GetModuleBaseNameW');
350
JMP [_GetModuleBaseNameW]
355
_GetModuleBaseName: Pointer;
357
function GetModuleBaseName;
359
GetProcedureAddress(_GetModuleBaseName, PsapiLib, 'GetModuleBaseName' + AWSuffix);
363
JMP [_GetModuleBaseName]
368
_GetModuleFileNameExA: Pointer;
370
function GetModuleFileNameExA;
372
GetProcedureAddress(_GetModuleFileNameExA, PsapiLib, 'GetModuleFileNameExA');
376
JMP [_GetModuleFileNameExA]
381
_GetModuleFileNameExW: Pointer;
383
function GetModuleFileNameExW;
385
GetProcedureAddress(_GetModuleFileNameExW, PsapiLib, 'GetModuleFileNameExW');
389
JMP [_GetModuleFileNameExW]
394
_GetModuleFileNameEx: Pointer;
396
function GetModuleFileNameEx;
398
GetProcedureAddress(_GetModuleFileNameEx, PsapiLib, 'GetModuleFileNameEx' + AWSuffix);
402
JMP [_GetModuleFileNameEx]
407
_GetModuleInformation: Pointer;
409
function GetModuleInformation;
411
GetProcedureAddress(_GetModuleInformation, PsapiLib, 'GetModuleInformation');
415
JMP [_GetModuleInformation]
420
_EmptyWorkingSet: Pointer;
422
function EmptyWorkingSet;
424
GetProcedureAddress(_EmptyWorkingSet, PsapiLib, 'EmptyWorkingSet');
428
JMP [_EmptyWorkingSet]
433
_QueryWorkingSet: Pointer;
435
function QueryWorkingSet;
437
GetProcedureAddress(_QueryWorkingSet, PsapiLib, 'QueryWorkingSet');
441
JMP [_QueryWorkingSet]
446
_InitializeProcessForWsWatch: Pointer;
448
function InitializeProcessForWsWatch;
450
GetProcedureAddress(_InitializeProcessForWsWatch, PsapiLib, 'InitializeProcessForWsWatch');
454
JMP [_InitializeProcessForWsWatch]
459
_GetWsChanges: Pointer;
461
function GetWsChanges;
463
GetProcedureAddress(_GetWsChanges, PsapiLib, 'GetWsChanges');
472
_GetMappedFileNameW: Pointer;
474
function GetMappedFileNameW;
476
GetProcedureAddress(_GetMappedFileNameW, PsapiLib, 'GetMappedFileNameW');
480
JMP [_GetMappedFileNameW]
485
_GetMappedFileNameA: Pointer;
487
function GetMappedFileNameA;
489
GetProcedureAddress(_GetMappedFileNameA, PsapiLib, 'GetMappedFileNameA');
493
JMP [_GetMappedFileNameA]
498
_GetMappedFileName: Pointer;
500
function GetMappedFileName;
502
GetProcedureAddress(_GetMappedFileName, PsapiLib, 'GetMappedFileName' + AWSuffix);
506
JMP [_GetMappedFileName]
511
_EnumDeviceDrivers: Pointer;
513
function EnumDeviceDrivers;
515
GetProcedureAddress(_EnumDeviceDrivers, PsapiLib, 'EnumDeviceDrivers');
519
JMP [_EnumDeviceDrivers]
524
_GetDeviceDriverBaseNameA: Pointer;
526
function GetDeviceDriverBaseNameA;
528
GetProcedureAddress(_GetDeviceDriverBaseNameA, PsapiLib, 'GetDeviceDriverBaseNameA');
532
JMP [_GetDeviceDriverBaseNameA]
537
_GetDeviceDriverBaseNameW: Pointer;
539
function GetDeviceDriverBaseNameW;
541
GetProcedureAddress(_GetDeviceDriverBaseNameW, PsapiLib, 'GetDeviceDriverBaseNameW');
545
JMP [_GetDeviceDriverBaseNameW]
550
_GetDeviceDriverBaseName: Pointer;
552
function GetDeviceDriverBaseName;
554
GetProcedureAddress(_GetDeviceDriverBaseName, PsapiLib, 'GetDeviceDriverBaseName' + AWSuffix);
558
JMP [_GetDeviceDriverBaseName]
563
_GetDeviceDriverFileNameA: Pointer;
565
function GetDeviceDriverFileNameA;
567
GetProcedureAddress(_GetDeviceDriverFileNameA, PsapiLib, 'GetDeviceDriverFileNameA');
571
JMP [_GetDeviceDriverFileNameA]
576
_GetDeviceDriverFileNameW: Pointer;
578
function GetDeviceDriverFileNameW;
580
GetProcedureAddress(_GetDeviceDriverFileNameW, PsapiLib, 'GetDeviceDriverFileNameW');
584
JMP [_GetDeviceDriverFileNameW]
589
_GetDeviceDriverFileName: Pointer;
591
function GetDeviceDriverFileName;
593
GetProcedureAddress(_GetDeviceDriverFileName, PsapiLib, 'GetDeviceDriverFileName' + AWSuffix);
597
JMP [_GetDeviceDriverFileName]
602
_GetProcessMemoryInfo: Pointer;
604
function GetProcessMemoryInfo;
606
GetProcedureAddress(_GetProcessMemoryInfo, PsapiLib, 'GetProcessMemoryInfo');
610
JMP [_GetProcessMemoryInfo]
615
_GetPerformanceInfo: Pointer;
617
function GetPerformanceInfo;
619
GetProcedureAddress(_GetPerformanceInfo, PsapiLib, 'GetPerformanceInfo');
623
JMP [_GetPerformanceInfo]
628
_EnumPageFilesW: Pointer;
630
function EnumPageFilesW;
632
GetProcedureAddress(_EnumPageFilesW, PsapiLib, 'EnumPageFilesA');
636
JMP [_EnumPageFilesW]
641
_EnumPageFilesA: Pointer;
643
function EnumPageFilesA;
645
GetProcedureAddress(_EnumPageFilesA, PsapiLib, 'EnumPageFilesW');
649
JMP [_EnumPageFilesA]
654
_EnumPageFiles: Pointer;
656
function EnumPageFiles;
658
GetProcedureAddress(_EnumPageFiles, PsapiLib, 'EnumPageFiles' + AWSuffix);
667
_GetProcessImageFileNameA: Pointer;
669
function GetProcessImageFileNameA;
671
GetProcedureAddress(_GetProcessImageFileNameA, PsapiLib, 'GetProcessImageFileNameA');
675
JMP [_GetProcessImageFileNameA]
680
_GetProcessImageFileNameW: Pointer;
682
function GetProcessImageFileNameW;
684
GetProcedureAddress(_GetProcessImageFileNameW, PsapiLib, 'GetProcessImageFileNameW');
688
JMP [_GetProcessImageFileNameW]
693
_GetProcessImageFileName: Pointer;
695
function GetProcessImageFileName;
697
GetProcedureAddress(_GetProcessImageFileName, PsapiLib, 'GetProcessImageFileName' + AWSuffix);
701
JMP [_GetProcessImageFileName]
707
function EnumProcesses; external PsapiLib name 'EnumProcesses';
708
function EnumProcessModules; external PsapiLib name 'EnumProcessModules';
709
function GetModuleBaseNameA; external PsapiLib name 'GetModuleBaseNameA';
710
function GetModuleBaseNameW; external PsapiLib name 'GetModuleBaseNameW';
711
function GetModuleBaseName; external PsapiLib name 'GetModuleBaseName' + AWSuffix;
712
function GetModuleFileNameExA; external PsapiLib name 'GetModuleFileNameExA';
713
function GetModuleFileNameExW; external PsapiLib name 'GetModuleFileNameExW';
714
function GetModuleFileNameEx; external PsapiLib name 'GetModuleFileNameEx' + AWSuffix;
715
function GetModuleInformation; external PsapiLib name 'GetModuleInformation';
716
function EmptyWorkingSet; external PsapiLib name 'EmptyWorkingSet';
717
function QueryWorkingSet; external PsapiLib name 'QueryWorkingSet';
718
function InitializeProcessForWsWatch; external PsapiLib name 'InitializeProcessForWsWatch';
719
function GetWsChanges; external PsapiLib name 'GetWsChanges';
720
function GetMappedFileNameW; external PsapiLib name 'GetMappedFileNameW';
721
function GetMappedFileNameA; external PsapiLib name 'GetMappedFileNameA';
722
function GetMappedFileName; external PsapiLib name 'GetMappedFileName' + AWSuffix;
723
function EnumDeviceDrivers; external PsapiLib name 'EnumDeviceDrivers';
724
function GetDeviceDriverBaseNameA; external PsapiLib name 'GetDeviceDriverBaseNameA';
725
function GetDeviceDriverBaseNameW; external PsapiLib name 'GetDeviceDriverBaseNameW';
726
function GetDeviceDriverBaseName; external PsapiLib name 'GetDeviceDriverBaseName' + AWSuffix;
727
function GetDeviceDriverFileNameA; external PsapiLib name 'GetDeviceDriverFileNameA';
728
function GetDeviceDriverFileNameW; external PsapiLib name 'GetDeviceDriverFileNameW';
729
function GetDeviceDriverFileName; external PsapiLib name 'GetDeviceDriverFileName' + AWSuffix;
730
function GetProcessMemoryInfo; external PsapiLib name 'GetProcessMemoryInfo';
731
function GetPerformanceInfo; external PsapiLib name 'GetPerformanceInfo';
732
function EnumPageFilesW; external PsapiLib name 'EnumPageFilesA';
733
function EnumPageFilesA; external PsapiLib name 'EnumPageFilesW';
734
function EnumPageFiles; external PsapiLib name 'EnumPageFiles' + AWSuffix;
735
function GetProcessImageFileNameA; external PsapiLib name 'GetProcessImageFileNameA';
736
function GetProcessImageFileNameW; external PsapiLib name 'GetProcessImageFileNameW';
737
function GetProcessImageFileName; external PsapiLib name 'GetProcessImageFileName' + AWSuffix;
739
{$ENDIF DYNAMIC_LINK}