Group: Performance Monitoring - Library: psapi
Listing device drivers in the system: load addresses, names
BOOL EnumDeviceDrivers(
LPVOID *lpImageBase, // array of load addresses
DWORD cb, // size of array
LPDWORD lpcbNeeded // number of bytes returned
);
DECLARE INTEGER EnumDeviceDrivers IN psapi;
STRING @ lpImageBase,;
INTEGER cb,;
INTEGER @ lpcbNeeded
lpImageBase [out] Pointer to an array that receives the list of load addresses for the device drivers.
cb [in] Specifies the size, in bytes, of the lpImageBase array.
lpcbNeeded [out] Receives the number of bytes returned in the lpImageBase array.
If the function succeeds, the return value is nonzero.
Windows NT/2000/XP: Included in Windows NT 4.0 and later.
Windows 95/98/Me: Unsupported.