[DllImport("dtl.dll", SetLastError=true)]
static extern public int DTL_DRIVER_CLOSE(int driver_id, int timeout);
Declare Function DTL_DRIVER_CLOSE Lib "dtl.dll" (TODO) As TODO
None.
Do you know one? Please contribute it!
None.
Please add some!
public static int DtlDriverClose(int driverId, int timeOut)
{
new UIPermission(UIPermissionWindow.AllWindows).Demand();
return (UnsafeNativeMethods.DTL_DRIVER_CLOSE(driverId, timeOut));
}
public void CloseDriver()
{
Dtl.DtlDriverClose(_driverId, TimeoutInMs);
_driverLookupList.TryRemove(_driverName, out _driverId);
if (_driverLookupList.IsEmpty)
{
Uninitialize();
}
}