HidSharpLibraryManualShutdown Method

HIDSharp
Normally, HIDSharp starts a thread to watch for device connection and disconnection. This is the thread that Changed events are raised on. It cleans up this thread on program exit or AppDomain unload. If, however, your program exits in a way HIDSharp does not know about, you may call this method to request it to clean up. This function will return immediately, but shutdown may still take a small amount of time.

Namespace:  HidSharp.Utility
Assembly:  HidSharp (in HidSharp.dll) Version: 2.6.3
Syntax

public static WaitHandle ManualShutdown()

Return Value

Type: WaitHandle
A wait handle that will be signaled when shutdown is complete.
See Also

Reference