Exemple #1
0
        public unsafe bool USBPcapSetDeviceFiltered(out USBPCAP_ADDRESS_FILTER filter, int filterDeviceId)
        {
            byte range;
            byte index;

            filter = new USBPCAP_ADDRESS_FILTER();

            if (USBPcapGetAddressRangeAndIndex(filterDeviceId, out range, out index) == false)
            {
                return(false);
            }

            filter.addresses[range] |= (uint)(1 << index);
            return(true);
        }
Exemple #2
0
 public bool USBPcapInitAddressFilter(out USBPCAP_ADDRESS_FILTER filter, int filterDeviceId)
 {
     return(USBPcapSetDeviceFiltered(out filter, filterDeviceId));
 }