Poluchit' handle na USB Device
V MSDN vse ochen' horosho napisano, chto nado sozdat' file cherez CreateFile, t.o. u nas budet handle na port, potom readfile i writefile. Cool, tol'ko problema v CreateFile - kak uznat' imya USB device? potomu chto, imho - prosto obraschat'sya k USB portu ne poluchit'sya, t.k. specifikaciya usb trebuet opredeleniya adresa dlya kazhdogo us-va, podklyuchaemogo k shine, kotoryi potom pomeschaetsya v packet USB. Odnako, esli us-vo podklyuchaetsya vgoryachuyu - kak prilozheniyu opredelit', chto ono podklyuchilos' i kak uznat' imya device, chtoby ispol'zovat' ego v CreateFile.
Esche, esli u kogo est' opisanie funkcii, realizovannyh v usb draiverah windows (dlya ispol'zovaniya v DeviceIOControl ), podelites' please.