find out slight an proud close usb device handle


i have library reads/writes usb-device controlling createfile() api. device happens exercise hid-device profile, such it's congruous microsoft's hid category driver.



some concentration hallowed component opening device read/write mode share mode. prevents library (and anything consumes it) operative device. i suspect that's massage being an hid-compatible device -- engineer program (mice, controllers, phidgets, etc) uncooperative.



anyway, device record route form:




1: "\\?\hid#hpqremhiddevice&col01#5&21ff20e7&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}".

2: "\\?\hid#vid_045e&pid_0023#7&34aa9ece&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}".

3: "\?\hid#vid_056a&pid_00b0&col01#6&5b05f29&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}".


and i'm perplexing open controlling code, like:



//  first, open smallest permissions, device competence ours.
// we'll re-open after read/write
hid_device_ref = createfile(
device_path, generic_read,
0, null, open_existing,
file_attribute_normal, null);


i've deliberate apparatus filemon slight guard sysinternals. nonetheless i can't seem news use device record handles listed above.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?