This scenario shows how to use a Windows.Devices.Enumeration.DeviceWatcher to detect the arrival, and removal, of a device with a custom device interface, and how to open it using the Windows.Devices.Custom.CustomDevice class.
The device interface is found using the device interface GUID chosen by the custom driver. This is defined, along with all other driver-defined constants, in the fx2Driver object (fx2Driver.js).