Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.3 KB

EnumDeviceDrivers.md

File metadata and controls

58 lines (40 loc) · 1.3 KB

Home

Function name : EnumDeviceDrivers

Group: Performance Monitoring - Library: psapi


The EnumDeviceDrivers function retrieves the load address for each device driver in the system.


Code examples:

Listing device drivers in the system: load addresses, names

Declaration:

BOOL EnumDeviceDrivers(
  LPVOID *lpImageBase,  // array of load addresses
  DWORD cb,             // size of array
  LPDWORD lpcbNeeded    // number of bytes returned
);  

FoxPro declaration:

DECLARE INTEGER EnumDeviceDrivers IN psapi;
	STRING  @ lpImageBase,;
	INTEGER   cb,;
	INTEGER @ lpcbNeeded  

Parameters:

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.


Return value:

If the function succeeds, the return value is nonzero.


Comments:

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