WRAPI Documentation

WRAPIEnumerateDevices

Use the WRAPIEnumerateDevices method to enumerate all network devices in the system.

HRESULT WRAPIEnumerateDevices(
  WRAPI_NDIS_DEVICE** 	ppDeviceList
  long* 			plItems
);

Parameters

ppDeviceList
[out] Points to a valid PWRAPI_NDIS_DEVICE structure. This structure receives the list of all the network adapters in the system to which NDISUIO can bind.
plItems
[out] Pointer to a long value that receives the number of devices in the list pointed to by ppDeviceList.

Return Values

The WRAPIEnumerateDevices method returns an HRESULT indicating the status of the call. All HRESULT values can be checked using the Windows GetLastError() function. The devices returned can be found in the list pointed to by ppDeviceList.

Requirements

  Windows XP
  Windows 95/98/Me: Unsupported.
  Header: Declared in WRAPIExports.h.
  Library: Use wrapi.lib.