GetDeviceDriverBaseName

The GetDeviceDriverBaseName function retrieves the base name of the specified device driver.

DWORD GetDeviceDriverBaseName(
  LPVOID ImageBase,  // the load address of the driver
  LPTSTR lpBaseName, // receives the base name of the driver
  DWORD nSize        // size of the buffer
);
 

Parameters

ImageBase
The load address of the device driver.
lpBaseName
Pointer to the buffer that receives the base name of the device driver.
nSize
Specifies the size, in bytes, of the lpBaseName buffer.

Return Value

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. To get extended error information, call GetLastError.

See Also

Process Status Helper Overview, PSAPI Functions, EnumDeviceDrivers