Ejemplo n.º 1
0
        private void EnumerateHidDevices()
        {
            ushort vendorId  = ushort.Parse(tb_vid.Text.Replace("0x", ""), System.Globalization.NumberStyles.AllowHexSpecifier);
            ushort productId = ushort.Parse(tb_pid.Text.Replace("0x", ""), System.Globalization.NumberStyles.AllowHexSpecifier);
            ushort usagePage = ushort.Parse(tb_usagepageID.Text.Replace("0x", ""), System.Globalization.NumberStyles.AllowHexSpecifier);
            ushort usageId   = ushort.Parse(tb_usageID.Text.Replace("0x", ""), System.Globalization.NumberStyles.AllowHexSpecifier);

            HIDEnum.EnumerateHidDevices(vendorId, productId, usagePage, usageId);
        }