Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.36 KB

File metadata and controls

58 lines (40 loc) · 1.36 KB

Home

Function name : GetDeviceDriverBaseName

Group: Performance Monitoring - Library: psapi


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


Code examples:

Listing device drivers in the system: load addresses, names

Declaration:

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

FoxPro declaration:

DECLARE INTEGER GetDeviceDriverBaseName IN psapi;
	INTEGER   ImageBase,;
	STRING  @ lpBaseName,;
	INTEGER   nSize  

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.


Comments:

Windows NT/2000/XP: Included in Windows NT 4.0 and later.
Windows 95/98/Me: Unsupported.