Hi,
I have successfully hooked a dll function in c#
[DllImport ("ftusbsrv.dll", EntryPoint="FtEnumDevices")]
public unsafe static extern bool FtEnumDevices(ref FT_SERVER_USB_DEVICE lpUsbDevices, ref ulong pulBufferSize, ref FT_ERROR_STATE lpES);
I need to pass null as as first parameter as below
FtEnumDevices(null, pulBufferSize,lpES);
I am getting the following compile time error:
Argument '1': cannot convert from '' to 'ref FebulaTechWrapper.USBOverNetWrapper.FT_SERVER_USB_DEVICE'
I need to know: How can I pass null as a first parameter?