Group: Performance Monitoring - Library: psapi
The GetDeviceDriverFileName function retrieves the fully qualified path for the specified device driver.
Listing device drivers in the system: load addresses, names
DWORD GetDeviceDriverFileName(
LPVOID ImageBase, // driver load address
LPTSTR lpFilename, // path buffer
DWORD nSize // size of buffer
);
DECLARE INTEGER GetDeviceDriverFileName IN psapi;
INTEGER ImageBase,;
STRING @ lpFilename,;
INTEGER nSize
ImageBase [in] Specifies the load address of the device driver.
lpFilename [out] Pointer to the buffer that receives the fully qualified path to the device driver.
nSize [in] Specifies the size, in bytes, of the lpFilename buffer.
If the function succeeds, the return value specifies the length of the string copied to the buffer. If the function fails, the return value is zero.
Windows NT/2000/XP: Included in Windows NT 4.0 and later.
Windows 95/98/Me: Unsupported.