Platform SDK: Performance Monitoring

GetDeviceDriverBaseName

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

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

Parameters

ImageBase
[in] Specifies the load address of the device driver.
lpBaseName
[out] Pointer to the buffer that receives the base name of the device driver.
nSize
[in] 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.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 or later.
  Header: Declared in Psapi.h.
  Library: Use Psapi.lib.
  Unicode: Implemented as Unicode and ANSI versions on Windows NT/2000.

See Also

Process Status Helper Overview, PSAPI Functions, EnumDeviceDrivers