I'm trying to use WRAPI in VB, but I can't manage to get it working.
I downloaded the dll and lib from http://sysnet.ucsd.edu/pawn/wrapi/download.html

The source files contain a header file, which defines the function:
Code:
typedef struct WRAPI_NDIS_DEVICE
{
	WCHAR *pDeviceName;
	WCHAR *pDeviceDescription;

} WRAPI_NDIS_DEVICE;

WRAPI HRESULT WRAPIEnumerateDevices(WRAPI_NDIS_DEVICE **ppDeviceList, long *plItems);
In VB, I declare the functions like this:
Code:
Private Type WRAPI_NDIS_DEVICE
    pDeviceName As String
    pDeviceDescription As String
End Type

Private Declare Function WRAPIEnumerateDevices Lib "wrapi.dll" (ppDeviceList As WRAPI_NDIS_DEVICE, plItems As Long) As Long
When I call the function, I get an error saying: "File not found: wrapi.dll", and the IDE breaks on the Declare Function statement.

The dll and the lib are both in the same folder as the project, and I also tried moving them to the System32 folder, but to no avail.

Does anyone know what I'm doing wrong? i'm not even sure if it's possible to use these functions from VB, but I would expect a slightly different error message than file-not-found. Any help is more than welcome