USBDeviceDetect

Supported Hardware Devices: USB Capture devices

Contents Demonstrated in the Sample:

  1. Monitoring hot-plugging events of USB capture devices

Call Logic:

  1. Obtain version information, initialize, and enumerate devices: MWGetVersion, MWCaptureInitInstance, MWRefreshDevice, MWGetChannelCount
  2. Declare hot-plug callback function: LPFN_HOT_PLUG_CALLBACK
  3. Register hot-plug monitoring: MWUSBRegisterHotPlug
    1. When device connection is detected:
      1. Open channel: MWOpenChannelByPath
      2. Retrieve channel information: MWGetChannelInfo
      3. Close channel
    2. When device disconnection is detected
  4. Unregister hot-plug monitoring: MWUSBUnRegisterHotPlug
  5. Release resources: MWCloseChannel, MWCaptureExitInstance

Result:

Result

Flowchart:

USBDeviceDetect Flowchart

results matching ""

    No results matching ""

    results matching ""

      No results matching ""