CloseDevices Method

Beta Innovations USB SDK .NET/COM

Releases all detected modules, cancels all pending threads and frees all used memory blocks. This call should be made on program exit and prior to any calls to the DetectHID function in order to refresh the device list.

Namespace:  BIUSBWrapper
Assembly:  BIUSBWrapper (in BIUSBWrapper.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function CloseDevices ( _
	iDev_Cnt As UInteger, _
	iDeviceList As DeviceParam() _
) As Boolean
C#
public static bool CloseDevices(
	uint iDev_Cnt,
	DeviceParam[] iDeviceList
)

Parameters

iDev_Cnt
Type: System..::.UInt32
Number of detected modules to close in the iDeviceList. This value is returned by a call to DetectHID.
iDeviceList
Type: array< BIUSBWrapper..::.DeviceParam >[]()[]
A DeviceParam structure. Must contain valid device information returned from call to DetectHID.

Return Value

trueTruetruetrue (True in Visual Basic) if success closing devices, or falseFalsefalsefalse (False in Visual Basic) if failure closing devices or releasing memory.

See Also