FUTEK .NET API Documentation
FUTEK_USB_DLL Assembly / FUTEK_USB_DLL Namespace / USB_DLL Class / Close_Device_Connection Method
Type: System.IntPtr
The handle associated with the USB device.


In This Topic
    Close_Device_Connection Method
    In This Topic
    Closes a connection with the USB device and assigns a value to the DeviceStatus.
    Syntax
    'Declaration
     
    
    Public Sub Close_Device_Connection( _
       ByVal DeviceHandle As IntPtr _
    ) 
    'Usage
     
    
    Dim instance As USB_DLL
    Dim DeviceHandle As IntPtr
     
    instance.Close_Device_Connection(DeviceHandle)
    public void Close_Device_Connection( 
       IntPtr DeviceHandle
    )

    Parameters

    DeviceHandle
    Type: System.IntPtr
    The handle associated with the USB device.
    Remarks
    This method should be used when you have finished communicating with the USB device. It is always recommended to close the device connection prior to closing an application.
    Requirements

    Target Platforms: Windows 10, Windows 11

    Target Framework: .NET Framework 4.8 or later

    See Also