{"id":63,"date":"2016-05-10T17:59:38","date_gmt":"2016-05-10T08:59:38","guid":{"rendered":"http:\/\/blog.y-lab.org\/?p=63"},"modified":"2016-05-10T17:59:38","modified_gmt":"2016-05-10T08:59:38","slug":"usb-%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%92%e5%8f%96%e5%be%97%e3%81%99%e3%82%8b-vc","status":"publish","type":"post","link":"https:\/\/blog.y-lab.org\/?p=63","title":{"rendered":"USB \u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u53d6\u5f97\u3059\u308b (VC++)"},"content":{"rendered":"<p>PC \u306b\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b USB \u30c7\u30d0\u30a4\u30b9\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u3069\u3046\u8a8d\u8b58\u3055\u308c\u3066\u3044\u308b\u304b<br \/>\n\uff08\u30cf\u30a4\u30b9\u30d4\u30fc\u30c9\u306e USB2.0 \u306a\u306e\u304b\u3001USB1.1 \u306a\u306e\u304b&hellip;\u7b49\uff09<br \/>\n\u77e5\u308a\u305f\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3092\u53d6\u5f97\u3059\u308b\u76f4\u63a5\u7684\u306a API \u306f\u306a\u3044\u3088\u3046\u3067\u3059\u304c\u3001<br \/>\nMicrosoft \u306e WinDDK \u306b\u542b\u307e\u308c\u308b usbview \u30b5\u30f3\u30d7\u30eb\u304c\u53c2\u8003\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>USB \u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8abf\u3079\u308b\u306b\u306f\u3001\u30eb\u30fc\u30c8\u30cf\u30d6\u304b\u3089\u30c7\u30d0\u30a4\u30b9\u3092\u8d70\u67fb\u3057\u3066\u3044\u304d\u3001<br \/>\nDeviceIoControl \u95a2\u6570\u3092\u4f7f\u3063\u3066 USB_NODE_CONNECTION_INFORMATION_EX \u69cb\u9020\u4f53\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3057\u3066\u3001<br \/>\n\u30c7\u30d0\u30a4\u30b9\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u306e bcdUSB \u3092\u898b\u308b\u3068\u3044\u3046\u306e\u304c\u78ba\u5b9f\u306a\u65b9\u6cd5\u3060\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\nbcdUSB \u306b\u306f BCD \u3067 USB \u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5165\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>USB \u30c7\u30d0\u30a4\u30b9\u306e VID \u3068 PID \u304b\u3089 USB \u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8fd4\u3059 C++ \u306e\u30af\u30e9\u30b9\u3092\u3064\u304f\u308a\u307e\u3057\u305f\u3002<br \/>\n-&gt; <a href=\"www.y-lab.org\/programming\/GetUSBVersion.zip\" title=\"\">\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a><br \/>\nCGetUSBVersion::GetUSBVersion(pid, vid) \u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u3067\u3001<br \/>\nUSB \u30d0\u30fc\u30b8\u30e7\u30f3\u304c BCD \u3067\u5e30\u308a\u307e\u3059\u3002<br \/>\n\uff08\u305f\u3068\u3048\u3070 2.0 \u306a\u3089 0x200\uff09<br \/>\n\u53d6\u5f97\u5931\u6557\u3067\u8ca0\u306e\u5024\u304c\u5e30\u308a\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a GetRootHubName \u306a\u3069\u306e\u4e00\u90e8\u306e\u95a2\u6570\u306f\u3001WinDDK \u306e\u30b5\u30f3\u30d7\u30eb\u304b\u3089\u5f15\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PC \u306b\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b USB \u30c7\u30d0\u30a4\u30b9\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u3069\u3046\u8a8d\u8b58\u3055\u308c\u3066\u3044\u308b\u304b \uff08\u30cf\u30a4\u30b9\u30d4\u30fc\u30c9\u306e USB2.0 \u306a\u306e\u304b\u3001USB1.1 \u306a\u306e\u304b&hellip;\u7b49\uff09 \u77e5\u308a\u305f\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002 \u3053\u308c\u3092\u53d6\u5f97\u3059\u308b\u76f4\u63a5\u7684\u306a API \u306f\u306a [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.y-lab.org\/index.php?rest_route=\/wp\/v2\/posts\/63"}],"collection":[{"href":"https:\/\/blog.y-lab.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.y-lab.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.y-lab.org\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.y-lab.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=63"}],"version-history":[{"count":0,"href":"https:\/\/blog.y-lab.org\/index.php?rest_route=\/wp\/v2\/posts\/63\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.y-lab.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.y-lab.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.y-lab.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}