[DllImport("RGUSBdrv.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern byte DeviceIsReady();
> 0 if the device is connected.
public static bool Connected
{
get
{
bool ok = DeviceIsReady() > 0 ? true : DeviceIsReady() > 0;
return ok;
}
}