SetupDiEnumDeviceInterfaces not detecting any device
<p>I am trying to send data over USB HID in C#. In the process of it, first program should populate  a list of plugged in devices.I am using "SetupDiEnumDeviceInterfaces". But it is not detecting attached USB HID device. On the other hand it is detecting my mouse, but not detecting actual HID device. Below is sample code format. Any advice is helpful.</p>

<p>public unsafe int CT_SetupDiEnumDeviceInterfaces(int memberIndex)
        {
            mySP_DEVICE_INTERFACE_DATA = new SP_DEVICE_INTERFACE_DATA();
            mySP_DEVICE_INTERFACE_DATA.cbSize = Marshal.SizeOf(mySP_DEVICE_INTERFACE_DATA);
            int result = SetupDiEnumDeviceInterfaces(
                hDevInfo,
                0,
                ref  guid,
                memberIndex,
                ref mySP_DEVICE_INTERFACE_DATA);
            return result;
        }</p>

<pre><code>    [DllImport("setupapi.dll", SetLastError = true)]
    static extern unsafe int SetupDiEnumDeviceInterfaces(
        int DeviceInfoSet,
        int DeviceInfoData,
        ref  GUID lpHidGuid,
        int MemberIndex,
        ref  SP_DEVICE_INTERFACE_DATA lpDeviceInterfaceData);
</code></pre>

<p>THanks</p>
