I am using your USB2DLL API via C# and it appears that USB2TestIsRunning() always returns true regardless of whether or not its actually still running. I have run the C++ sample application and USB2TestIsRunning() seems to work as expected there.
If it is of any help, the DLLImport declaration in my C# application is as follows:
[DllImport("USB2Dll.dll", CallingConvention = CallingConvention.Cdecl)]
publicstaticexternbool USB2TestIsRunning();
If it is of any help, the DLLImport declaration in my C# application is as follows:
[DllImport("USB2Dll.dll", CallingConvention = CallingConvention.Cdecl)]
publicstaticexternbool USB2TestIsRunning();
Comment