{"id":99247,"date":"2026-09-02T08:49:48","date_gmt":"2026-09-02T00:49:48","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/99247.html"},"modified":"2026-09-02T08:49:48","modified_gmt":"2026-09-02T00:49:48","slug":"windows-%e9%a9%b1%e5%8a%a8%e5%ae%9e%e4%be%8b%e5%88%86%e6%9e%90%e7%b3%bb%e5%88%97-libusb%e9%a9%b1%e5%8a%a8%e5%88%86%e6%9e%90-%e9%a9%b1%e5%8a%a8%e5%b1%82%e6%ba%90%e7%a0%81%e7%af%87%e5%9b%9b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/99247.html","title":{"rendered":"windows \u9a71\u52a8\u5b9e\u4f8b\u5206\u6790\u7cfb\u5217: libusb\u9a71\u52a8\u5206\u6790-\u9a71\u52a8\u5c42\u6e90\u7801\u7bc7(\u56db)"},"content":{"rendered":"<h2>libusb-win32 \u5185\u6838\u9a71\u52a8\u6e90\u7801\u5206\u6790&#xff08;\u7b2c\u56db\u7bc7 \u00b7 \u603b\u7ed3\u7bc7&#xff09;&#xff1a;\u5b8c\u6574\u6570\u636e\u6d41\u3001\u540c\u6b65\u673a\u5236\u3001\u5185\u5b58\u7ba1\u7406\u4e0e\u5b89\u5168\u7b56\u7565<\/h2>\n<h3>1. \u5f15\u8a00<\/h3>\n<p>\u524d\u4e09\u7bc7\u5206\u522b\u5256\u6790\u4e86\u9a71\u52a8\u6846\u67b6\u3001\u4f20\u8f93\u5f15\u64ce\u3001\u6ce8\u518c\u8868\u4e0e\u8f85\u52a9\u6a21\u5757\u3002\u672c\u7bc7\u4f5c\u4e3a\u5185\u6838\u9a71\u52a8\u5206\u6790\u7684\u6536\u5b98\u4e4b\u4f5c&#xff0c;\u65e8\u5728\u4e32\u8054\u5404\u6a21\u5757&#xff0c;\u52fe\u52d2\u5b8c\u6574\u6570\u636e\u6d41&#xff0c;\u5e76\u6df1\u5165\u63a2\u8ba8\u9a71\u52a8\u5185\u90e8\u7684\u540c\u6b65\u673a\u5236\u3001\u5185\u5b58\u7ba1\u7406\u3001\u9519\u8bef\u5904\u7406\u53ca\u5b89\u5168\u7b56\u7565\u3002\u8fd9\u4e9b\u5185\u5bb9\u867d\u672a\u5728\u524d\u4e09\u7bc7\u4e2d\u72ec\u7acb\u6210\u7ae0&#xff0c;\u4f46\u8d2f\u7a7f\u4e8e\u6bcf\u4e00\u884c\u4ee3\u7801\u4e4b\u4e2d&#xff0c;\u662f\u9a71\u52a8\u7a33\u5b9a\u8fd0\u884c\u7684\u6839\u672c\u4fdd\u969c\u3002<\/p>\n<h3>2. \u5b8c\u6574\u6570\u636e\u6d41&#xff1a;\u4ece\u7528\u6237\u6001 API \u5230 USB \u786c\u4ef6<\/h3>\n<p>\u4e00\u6761\u5178\u578b\u7684\u7528\u6237\u6001\u8c03\u7528&#xff08;\u5982 usb_bulk_read&#xff09;\u5728\u5185\u6838\u4e2d\u7684\u5b8c\u6574\u65c5\u7a0b&#xff1a;<\/p>\n<li>\u7528\u6237\u6001&#xff1a;usb_bulk_read&#xff08;windows.c&#xff09;\u2192 DeviceIoControl(&#8230;, LIBUSB_IOCTL_INTERRUPT_OR_BULK_READ, &#8230;) \u2192 \u8fdb\u5165\u5185\u6838\u3002<\/li>\n<li>\u5185\u6838\u5165\u53e3&#xff1a;dispatch&#xff08;dispatch.c&#xff09;\u8bc6\u522b IRP_MJ_DEVICE_CONTROL&#xff0c;\u56e0 IRP \u5c5e\u4e8e\u672c\u9a71\u52a8&#xff08;accept_irp \u8fd4\u56de TRUE&#xff09;&#xff0c;\u8c03\u7528 dispatch_ioctl\u3002<\/li>\n<li>IOCTL \u6d3e\u53d1&#xff1a;dispatch_ioctl&#xff08;ioctl.c&#xff09;\u6839\u636e IOCTL \u7801&#xff0c;\u8bc6\u522b\u4e3a LIBUSB_IOCTL_INTERRUPT_OR_BULK_READ\u3002\n<ul>\n<li>\u83b7\u53d6 MDL&#xff08;\u7528\u6237\u7f13\u51b2\u533a\u63cf\u8ff0\u7b26&#xff09;\u3001libusb_request \u7ed3\u6784\u3002<\/li>\n<li>\u8c03\u7528 get_pipe_info \u67e5\u8be2\u7aef\u70b9\u4fe1\u606f\u3002<\/li>\n<li>\u8ba1\u7b97 maxTransferSize\u3002<\/li>\n<li>\u8c03\u7528 transfer&#xff08;transfer.c&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u4f20\u8f93\u6267\u884c&#xff1a;transfer \u51fd\u6570&#xff1a;\n<ul>\n<li>\u5206\u914d context_t \u7ed3\u6784&#xff0c;\u586b\u5145\u53c2\u6570\u3002<\/li>\n<li>\u8c03\u7528 create_urb \u6784\u5efa URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER URB\u3002<\/li>\n<li>\u8c03\u7528 transfer_next \u2192 \u8bbe\u7f6e IO_STACK_LOCATION&#xff0c;\u5c06 URB \u4f5c\u4e3a Argument1 \u4f20\u5165&#xff0c;\u8c03\u7528 IoCallDriver(dev-&gt;target_device, irp)\u3002<\/li>\n<\/ul>\n<\/li>\n<li>USBD \u5c42&#xff1a;target_device \u901a\u5e38\u4e3a dev-&gt;physical_device_object&#xff08;\u8fc7\u6ee4\u6a21\u5f0f&#xff09;\u6216 dev-&gt;next_stack_device&#xff08;\u529f\u80fd\u6a21\u5f0f&#xff09;\u3002URB \u7ecf\u8fc7 USB \u9a71\u52a8\u6808&#xff0c;\u6700\u7ec8\u7531\u4e3b\u673a\u63a7\u5236\u5668\u9a71\u52a8\u7a0b\u5e8f\u5904\u7406&#xff0c;\u901a\u8fc7\u786c\u4ef6\u603b\u7ebf\u53d1\u9001\u6570\u636e\u3002<\/li>\n<li>\u5b8c\u6210\u56de\u8c03&#xff1a;URB \u5b8c\u6210\u65f6&#xff0c;USBD \u8c03\u7528 IoCompleteRequest&#xff0c;\u89e6\u53d1 transfer_complete \u5b8c\u6210\u4f8b\u7a0b\u3002\n<ul>\n<li>\u82e5\u4f20\u8f93\u90e8\u5206\u5b8c\u6210\u4e14\u9700\u62c6\u5206&#xff0c;\u5219\u5206\u914d\u5b50 MDL&#xff0c;\u91cd\u65b0\u63d0\u4ea4&#xff08;transfer_next&#xff09;\u3002<\/li>\n<li>\u82e5\u5168\u90e8\u5b8c\u6210&#xff0c;\u5219\u8bbe\u7f6e irp-&gt;IoStatus.Information \u4e3a\u5b9e\u9645\u5b57\u8282\u6570&#xff0c;\u5b8c\u6210 IRP\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u8fd4\u56de\u7528\u6237\u6001&#xff1a;IRP \u5b8c\u6210\u8fd4\u56de\u5230\u7528\u6237\u6001 DeviceIoControl&#xff0c;usb_reap_async \u6216 _usb_io_sync \u83b7\u5f97\u7ed3\u679c\u3002<\/li>\n<p>\u5173\u952e\u70b9&#xff1a;<\/p>\n<ul>\n<li>\u7528\u6237\u7f13\u51b2\u533a\u901a\u8fc7 MDL \u76f4\u63a5\u6620\u5c04&#xff0c;\u907f\u514d\u4e86\u5185\u6838-\u7528\u6237\u6570\u636e\u62f7\u8d1d&#xff0c;\u63d0\u5347\u4e86\u6027\u80fd\u3002<\/li>\n<li>\u5927\u4f20\u8f93\u88ab\u62c6\u5206\u4e3a\u591a\u4e2a URB&#xff0c;\u4f46\u7528\u6237\u6001\u53ea\u770b\u5230\u4e00\u6b21\u5b8c\u6574\u7684\u540c\u6b65\/\u5f02\u6b65\u4f20\u8f93\u3002<\/li>\n<\/ul>\n<h3>3. \u6838\u5fc3\u540c\u6b65\u539f\u8bed<\/h3>\n<p>\u9a71\u52a8\u8fd0\u884c\u5728\u591a\u7ebf\u7a0b\u3001\u591a IRP \u5e76\u53d1\u73af\u5883\u4e2d&#xff0c;\u9700\u5408\u7406\u4f7f\u7528\u540c\u6b65\u673a\u5236\u3002<\/p>\n<h4>3.1 \u79fb\u9664\u9501&#xff08;remove_lock&#xff09;<\/h4>\n<ul>\n<li>\u76ee\u7684&#xff1a;\u5728\u8bbe\u5907\u79fb\u9664\u8fc7\u7a0b\u4e2d\u963b\u585e\u65b0\u7684 I\/O \u8bf7\u6c42&#xff0c;\u786e\u4fdd\u6240\u6709\u73b0\u6709\u8bf7\u6c42\u5b8c\u6210\u540e\u518d\u5220\u9664\u8bbe\u5907\u5bf9\u8c61\u3002<\/li>\n<li>\u5b9e\u73b0&#xff1a;\n<ul>\n<li>usage_count&#xff08;\u539f\u5b50\u589e\u51cf&#xff09;\u8bb0\u5f55\u6d3b\u8dc3\u8bf7\u6c42\u6570\u3002<\/li>\n<li>remove_pending \u6807\u5fd7\u6307\u793a\u79fb\u9664\u8fdb\u884c\u4e2d\u3002<\/li>\n<li>event \u7528\u4e8e\u7b49\u5f85\u8ba1\u6570\u5f52\u96f6\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u6d41\u7a0b&#xff1a;\n<ul>\n<li>\u6bcf\u4e2a IOCTL \u5165\u53e3\u8c03\u7528 remove_lock_acquire&#xff08;\u82e5 remove_pending \u4e3a TRUE \u5219\u8fd4\u56de STATUS_DELETE_PENDING&#xff09;\u3002<\/li>\n<li>\u51fa\u53e3\u8c03\u7528 remove_lock_release\u3002<\/li>\n<li>IRP_MN_REMOVE_DEVICE \u4e2d\u8c03\u7528 remove_lock_release_and_wait&#xff0c;\u8bbe\u7f6e remove_pending &#061; TRUE&#xff0c;\u91ca\u653e\u4e24\u6b21&#xff08;\u8ba9\u8ba1\u6570\u6709\u673a\u4f1a\u53d8 0&#xff09;&#xff0c;\u7136\u540e KeWaitForSingleObject \u7b49\u5f85 event\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>3.2 \u7aef\u70b9\u987a\u5e8f\u4fdd\u8bc1&#xff08;pending_busy \/ pending_sequence&#xff09;<\/h4>\n<ul>\n<li>\u4e3a\u9632\u6b62\u540c\u4e00\u7aef\u70b9\u4e0a\u7684\u8bf7\u6c42\u4e71\u5e8f&#xff0c;\u9a71\u52a8\u4f7f\u7528\u539f\u5b50\u64cd\u4f5c&#xff1a;\n<ul>\n<li>pending_busy[ep]&#xff1a;\u6807\u8bb0\u7aef\u70b9\u662f\u5426\u6b63\u5728\u5904\u7406\u4f20\u8f93&#xff08;InterlockedCompareExchange \u7f6e 1&#xff09;\u3002<\/li>\n<li>\u82e5\u5df2\u6709\u8bf7\u6c42\u6b63\u5728\u6267\u884c&#xff0c;\u65b0\u7684\u8bf7\u6c42\u5c06\u88ab\u7acb\u5373\u4e2d\u6b62&#xff08;\u8fd4\u56de STATUS_UNSUCCESSFUL&#xff09;\u3002<\/li>\n<li>\u5b8c\u6210\u65f6\u7f6e\u56de 0\u3002<\/li>\n<li>\u540c\u65f6\u7528 pending_sequence \u5b58\u50a8\u5f53\u524d\u4f20\u8f93\u7684\u5e8f\u5217\u53f7&#xff0c;\u5728\u62c6\u5206\u4f20\u8f93\u4e2d\u68c0\u67e5\u662f\u5426\u6709\u65b0\u8bf7\u6c42\u63d2\u5165&#xff0c;\u82e5\u6709\u5219\u505c\u6b62\u62c6\u5206&#xff0c;\u4fdd\u8bc1\u987a\u5e8f\u6027\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>3.3 \u539f\u5b50\u64cd\u4f5c\u4e0e\u4e92\u9501\u51fd\u6570<\/h4>\n<ul>\n<li>InterlockedIncrement \/ Decrement&#xff1a;\u7528\u4e8e usage_count \u548c\u5168\u5c40\u5e8f\u5217\u53f7 sequence\u3002<\/li>\n<li>InterlockedExchange \/ CompareExchange&#xff1a;\u7528\u4e8e pending_busy \u548c lock \u72b6\u6001\u673a\u3002<\/li>\n<li>\u8fd9\u4e9b\u51fd\u6570\u4fdd\u8bc1\u64cd\u4f5c\u5728\u591a\u5904\u7406\u5668\u7cfb\u7edf\u4e0a\u4e5f\u662f\u539f\u5b50\u7684&#xff0c;\u65e0\u9700\u989d\u5916\u81ea\u65cb\u9501\u3002<\/li>\n<\/ul>\n<h4>3.4 \u4e8b\u4ef6\u5bf9\u8c61&#xff08;KEVENT&#xff09;<\/h4>\n<ul>\n<li>\u5728 call_usbd_ex \u4e2d&#xff0c;\u901a\u8fc7 IoBuildDeviceIoControlRequest \u4f20\u9012\u4e8b\u4ef6&#xff0c;KeWaitForSingleObject \u7b49\u5f85 URB \u5b8c\u6210&#xff08;\u540c\u6b65\u64cd\u4f5c&#xff09;\u3002<\/li>\n<li>\u5728 power_set_device_state \u4e2d&#xff0c;\u4f7f\u7528\u4e8b\u4ef6\u7b49\u5f85 PoRequestPowerIrp \u5b8c\u6210\u3002<\/li>\n<li>\u5728 get_current_frame \u4e2d&#xff0c;\u540c\u6837\u4f7f\u7528\u4e8b\u4ef6\u7b49\u5f85 URB \u5b8c\u6210\u3002<\/li>\n<\/ul>\n<h3>4. \u5185\u5b58\u5206\u914d\u7b56\u7565<\/h3>\n<p>\u9a71\u52a8\u4f7f\u7528 ExAllocatePoolWithTag&#xff08;\u5305\u88c5\u4e3a allocate_pool&#xff09;\u5206\u914d\u5185\u6838\u5185\u5b58\u3002<\/p>\n<h4>4.1 \u6c60\u7c7b\u578b\u9009\u62e9<\/h4>\n<ul>\n<li>\u5728 DriverEntry \u4e2d\u6839\u636e OS \u7248\u672c\u9009\u62e9\u6c60\u7c7b\u578b&#xff1a;\n<ul>\n<li>Windows 8 \u53ca\u4ee5\u4e0a&#xff1a;NonPagedPoolNx&#xff08;\u975e\u53ef\u6267\u884c\u5206\u9875\u6c60&#xff09;&#xff0c;\u6ee1\u8db3\u5b89\u5168\u8981\u6c42&#xff08;\u9632\u6b62\u6570\u636e\u6267\u884c\u4fdd\u62a4&#xff09;\u3002<\/li>\n<li>\u8f83\u65e9\u7248\u672c&#xff1a;NonPagedPool\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u539f\u56e0&#xff1a;\u67d0\u4e9b\u5185\u6838\u5185\u5b58\u53ef\u80fd\u88ab\u653b\u51fb\u8005\u6ce8\u5165\u6076\u610f\u4ee3\u7801&#xff0c;NonPagedPoolNx \u7981\u6b62\u6267\u884c&#xff0c;\u589e\u5f3a\u5b89\u5168\u6027\u3002<\/li>\n<\/ul>\n<h4>4.2 \u6c60\u6807\u8bb0&#xff08;POOL_TAG&#xff09;<\/h4>\n<ul>\n<li>\u6807\u8bb0\u4e3a &#039;0BSU&#039;&#xff08;\u5373 \u201cUSB0\u201d&#xff09;&#xff0c;\u4fbf\u4e8e\u5185\u6838\u8c03\u8bd5\u5de5\u5177&#xff08;\u5982 !pool&#xff09;\u8bc6\u522b\u5185\u5b58\u5c5e\u4e8e libusb-win32 \u9a71\u52a8&#xff0c;\u5229\u4e8e\u5185\u5b58\u6cc4\u6f0f\u6392\u67e5\u3002<\/li>\n<\/ul>\n<h4>4.3 \u5178\u578b\u5206\u914d\u573a\u666f<\/h4>\n<ul>\n<li>\u8bbe\u5907\u6269\u5c55&#xff1a;IoCreateDevice \u65f6\u76f4\u63a5\u5206\u914d&#xff08;sizeof(libusb_device_t)&#xff09;\u3002<\/li>\n<li>\u914d\u7f6e\u63cf\u8ff0\u7b26&#xff1a;get_config_descriptor \u4e2d\u5206\u914d\u3002<\/li>\n<li>URB&#xff1a;create_urb \u548c USBD_CreateConfigurationRequestEx \u4e2d\u5206\u914d\u3002<\/li>\n<li>\u4e0a\u4e0b\u6587&#xff1a;transfer \u4e2d\u7684 context_t\u3002<\/li>\n<li>\u63a5\u53e3\u5217\u8868&#xff1a;set_configuration \u4e2d\u7684 USBD_INTERFACE_LIST_ENTRY \u6570\u7ec4\u3002<\/li>\n<\/ul>\n<p>\u6240\u6709\u5206\u914d\u7684\u5185\u5b58\u5728\u4e0d\u518d\u4f7f\u7528\u65f6\u5747\u901a\u8fc7 ExFreePool \u91ca\u653e&#xff0c;\u4e14\u901a\u8fc7 UpdateContextConfigDescriptor \u5b8f\u7ba1\u7406\u914d\u7f6e\u63cf\u8ff0\u7b26\u7684\u751f\u547d\u5468\u671f&#xff08;\u82e5\u65e7\u63cf\u8ff0\u7b26\u4e0e\u65b0\u63cf\u8ff0\u7b26\u4e0d\u540c\u5219\u5148\u91ca\u653e\u65e7&#xff09;\u3002<\/p>\n<h3>5. \u9519\u8bef\u5904\u7406\u4e0e\u72b6\u6001\u68c0\u67e5\u6a21\u5f0f<\/h3>\n<p>\u9a71\u52a8\u4e2d\u5927\u91cf\u4f7f\u7528 NT_SUCCESS \u548c USBD_SUCCESS \u5b8f\u68c0\u67e5\u64cd\u4f5c\u7ed3\u679c\u3002<\/p>\n<h4>5.1 \u6807\u51c6\u9519\u8bef\u5904\u7406\u6a21\u5f0f<\/h4>\n<p>status <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">call_usbd<\/span><span class=\"token punctuation\">(<\/span>dev<span class=\"token punctuation\">,<\/span> <span class=\"token operator\">&amp;<\/span>urb<span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token operator\">!<\/span><span class=\"token function\">NT_SUCCESS<\/span><span class=\"token punctuation\">(<\/span>status<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">||<\/span> <span class=\"token operator\">!<\/span><span class=\"token function\">USBD_SUCCESS<\/span><span class=\"token punctuation\">(<\/span>urb<span class=\"token punctuation\">.<\/span>UrbHeader<span class=\"token punctuation\">.<\/span>Status<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token function\">USBERR<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;operation failed: status&#061;0x%X, urb-status&#061;0x%X&#034;<\/span><span class=\"token punctuation\">,<\/span> status<span class=\"token punctuation\">,<\/span> urb<span class=\"token punctuation\">.<\/span>UrbHeader<span class=\"token punctuation\">.<\/span>Status<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> status<span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ \u6216\u8f6c\u5230\u9519\u8bef\u6807\u7b7e<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h4>5.2 \u53c2\u6570\u9a8c\u8bc1<\/h4>\n<ul>\n<li>\u6240\u6709 IOCTL \u5165\u53e3\u5747\u68c0\u67e5\u8f93\u5165\/\u8f93\u51fa\u7f13\u51b2\u533a\u957f\u5ea6\u662f\u5426\u81f3\u5c11\u4e3a sizeof(libusb_request)\u3002<\/li>\n<li>\u5bf9\u7aef\u70b9\u5730\u5740\u3001\u63a5\u53e3\u53f7\u3001\u914d\u7f6e\u503c\u8fdb\u884c\u8303\u56f4\u68c0\u67e5\u3002<\/li>\n<li>\u5bf9\u4f20\u8f93\u7f13\u51b2\u533a\u5927\u5c0f\u8fdb\u884c\u6700\u5927\u9650\u5236&#xff08;LIBUSB_MAX_READ_WRITE &#061; 64KB&#xff09;\u7684\u68c0\u67e5&#xff0c;\u9632\u6b62\u8d85\u957f\u8bf7\u6c42\u5bfc\u81f4\u5185\u5b58\u8017\u5c3d\u3002<\/li>\n<\/ul>\n<h4>5.3 \u7528\u6237\u6001\u9519\u8bef\u7801\u6620\u5c04<\/h4>\n<ul>\n<li>\u9a71\u52a8\u8fd4\u56de\u7684 NTSTATUS \u6700\u7ec8\u901a\u8fc7 IRP \u7684 IoStatus.Status \u4f20\u9012\u5230\u7528\u6237\u6001\u3002<\/li>\n<li>\u7528\u6237\u6001 DLL \u4e2d\u7684 _usb_io_sync \u548c _usb_reap_async \u5c06 Windows \u9519\u8bef\u7801&#xff08;\u5982 ERROR_SEM_TIMEOUT&#xff09;\u6620\u5c04\u4e3a libusb \u9519\u8bef\u7801&#xff08;\u5982 -ETRANSFER_TIMEDOUT&#xff09;\u3002<\/li>\n<\/ul>\n<h4>5.4 \u8d85\u65f6\u5904\u7406<\/h4>\n<ul>\n<li>call_usbd_ex \u652f\u6301\u8d85\u65f6\u53c2\u6570&#xff0c;\u901a\u8fc7 KeWaitForSingleObject \u7b49\u5f85\u4e8b\u4ef6&#xff0c;\u82e5\u8d85\u65f6\u5219\u8c03\u7528 IoCancelIrp \u53d6\u6d88 URB&#xff0c;\u5e76\u8fd4\u56de STATUS_TIMEOUT\u3002<\/li>\n<li>\u53d6\u6d88\u540e\u901a\u8fc7\u4e92\u9501\u72b6\u6001\u673a\u786e\u4fdd\u5b8c\u6210\u4f8b\u7a0b\u4e0d\u53cc\u91cd\u5b8c\u6210\u3002<\/li>\n<\/ul>\n<h3>6. \u9a71\u52a8\u5378\u8f7d\u6d41\u7a0b&#xff08;unload&#xff09;<\/h3>\n<p>DriverUnload \u51fd\u6570\u5728\u9a71\u52a8\u88ab\u7cfb\u7edf\u5378\u8f7d\u65f6\u8c03\u7528&#xff0c;\u6267\u884c\u6e05\u7406&#xff1a;<\/p>\n<ul>\n<li>\u4ec5\u6253\u5370\u4e00\u6761\u8c03\u8bd5\u4fe1\u606f&#xff08;[unloading-driver] &#8230;&#xff09;\u3002<\/li>\n<li>\u7531\u4e8e IoDeleteDevice \u5df2\u5728 IRP_MN_REMOVE_DEVICE \u4e2d\u8c03\u7528&#xff0c;\u6b64\u5904\u65e0\u9700\u989d\u5916\u6e05\u7406&#xff0c;\u4f46\u82e5\u9a71\u52a8\u52a0\u8f7d\u540e\u672a\u7ed1\u5b9a\u4efb\u4f55\u8bbe\u5907&#xff0c;\u5219\u5378\u8f7d\u65f6\u4e0d\u4f1a\u6267\u884c\u8bbe\u5907\u5220\u9664&#xff0c;\u56e0\u6b64 DriverUnload \u5fc5\u987b\u5b58\u5728\u4e14\u5141\u8bb8\u65e0\u8bbe\u5907\u65f6\u6b63\u5e38\u8fd4\u56de\u3002<\/li>\n<\/ul>\n<h3>7. \u4e0e USBD \u4ea4\u4e92\u7684\u5173\u952e\u70b9<\/h3>\n<p>\u9a71\u52a8\u4e0d\u76f4\u63a5\u4e0e\u786c\u4ef6\u901a\u4fe1&#xff0c;\u800c\u662f\u901a\u8fc7 USBD&#xff08;USB \u603b\u7ebf\u9a71\u52a8&#xff09;\u63a5\u53e3\u53d1\u9001 URB\u3002<\/p>\n<ul>\n<li>URB \u51fd\u6570\u7801&#xff1a;\u5982 URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER\u3001URB_FUNCTION_CONTROL_TRANSFER \u7b49\u3002<\/li>\n<li>\u7ba1\u9053\u53e5\u67c4&#xff1a;\u901a\u8fc7 SELECT_CONFIGURATION \u6216 SELECT_INTERFACE \u83b7\u5f97&#xff0c;\u7f13\u5b58\u5728 libusb_endpoint_t \u4e2d\u3002<\/li>\n<li>USBD \u7248\u672c\u517c\u5bb9&#xff1a;Windows 8&#043; \u4f7f\u7528 USBD_CreateHandle \u548c USBD_QueryUsbCapability \u83b7\u53d6\u8bbe\u5907\u901f\u5ea6&#xff1b;\u65e9\u671f\u7248\u672c\u4f7f\u7528 USBD_CreateConfigurationRequestEx \u7b49\u65e7\u63a5\u53e3\u3002\u901a\u8fc7 LIBUSB_ENABLE_CONTRACT_VERSION_602 \u5b8f\u5207\u6362\u3002<\/li>\n<\/ul>\n<h3>8. \u5b89\u5168\u4e0e\u7a33\u5b9a\u6027\u8003\u8651<\/h3>\n<ul>\n<li>\u9632\u6b62 BSOD&#xff1a;\n<ul>\n<li>\u5bf9 WDF \u9a71\u52a8\u7981\u6b62\u7535\u6e90\u63a7\u5236\u3002<\/li>\n<li>\u53d6\u6d88\u5f02\u6b65\u4f20\u8f93\u65f6\u540c\u6b65\u7b49\u5f85 OVERLAPPED \u5b8c\u6210&#xff0c;\u9632\u6b62\u7528\u6237\u6808\u88ab\u5199\u574f&#xff08;\u524d\u6587\u5df2\u8ff0&#xff09;\u3002<\/li>\n<li>\u79fb\u9664\u9501\u4fdd\u8bc1\u8bbe\u5907\u5220\u9664\u65f6\u65e0\u60ac\u7a7a\u8bf7\u6c42\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u6743\u9650\u68c0\u67e5&#xff1a;\u9a71\u52a8\u4e0d\u6267\u884c\u8bbf\u95ee\u63a7\u5236&#xff0c;\u7531\u7528\u6237\u6001 DLL \u8d1f\u8d23&#xff08;\u4f9d\u8d56 CreateFile \u6743\u9650&#xff09;\u3002<\/li>\n<li>\u8f93\u5165\u9a8c\u8bc1&#xff1a;\u6240\u6709\u7528\u6237\u6001\u4f20\u5165\u7684 libusb_request \u7ed3\u6784\u5747\u88ab\u5145\u5206\u9a8c\u8bc1&#xff0c;\u9632\u6b62\u6076\u610f\u6784\u9020\u5bfc\u81f4\u5185\u6838\u5d29\u6e83\u3002<\/li>\n<li>\u8d44\u6e90\u9650\u5236&#xff1a;\u9650\u5236\u4f20\u8f93\u5927\u5c0f&#xff08;64KB&#xff09;\u548c\u5e76\u53d1\u4f20\u8f93\u6570&#xff08;\u901a\u8fc7\u7aef\u70b9\u5fd9\u6807\u5fd7&#xff09;&#xff0c;\u907f\u514d\u8017\u5c3d\u7cfb\u7edf\u8d44\u6e90\u3002<\/li>\n<\/ul>\n<h3>9. \u6027\u80fd\u4f18\u5316\u6280\u672f<\/h3>\n<ul>\n<li>MDL \u76f4\u63a5\u8bbf\u95ee&#xff1a;\u907f\u514d\u4e86 METHOD_BUFFERED \u7684\u989d\u5916\u62f7\u8d1d\u3002<\/li>\n<li>\u63cf\u8ff0\u7b26\u7f13\u5b58&#xff1a;\u8bbe\u5907\u63cf\u8ff0\u7b26\u548c\u914d\u7f6e\u63cf\u8ff0\u7b26\u88ab\u7f13\u5b58&#xff0c;\u907f\u514d\u91cd\u590d\u8bf7\u6c42\u3002<\/li>\n<li>\u4f20\u8f93\u62c6\u5206&#xff1a;\u5141\u8bb8\u5927\u6570\u636e\u4f20\u8f93\u5206\u591a\u6b21\u63d0\u4ea4&#xff0c;\u6bcf\u6b21\u4f7f\u7528\u90e8\u5206 MDL&#xff0c;\u907f\u514d\u5185\u5b58\u788e\u7247\u3002<\/li>\n<li>\u4e2d\u65ad\/\u6279\u91cf\u4f20\u8f93\u7edf\u4e00&#xff1a;\u4f7f\u7528\u76f8\u540c\u7684 URB \u51fd\u6570&#xff0c;\u51cf\u5c11\u4ee3\u7801\u91cd\u590d\u3002<\/li>\n<li>\u65e5\u5fd7\u7ea7\u522b\u63a7\u5236&#xff1a;\u53d1\u5e03\u7248\u672c\u4e2d\u8c03\u8bd5\u4fe1\u606f\u88ab\u7f16\u8bd1\u6389&#xff0c;\u964d\u4f4e\u6027\u80fd\u5f00\u9500\u3002<\/li>\n<\/ul>\n<h3>10. \u603b\u7ed3&#xff1a;\u9a71\u52a8\u8bbe\u8ba1\u7684\u7cbe\u9ad3<\/h3>\n<p>libusb-win32 \u5185\u6838\u9a71\u52a8\u7ecf\u8fc7\u5341\u4f59\u5e74\u7684\u6f14\u8fdb&#xff0c;\u5df2\u6210\u4e3a\u4e00\u4e2a\u6210\u719f\u3001\u7a33\u5b9a\u4e14\u9ad8\u6027\u80fd\u7684 USB \u9a71\u52a8\u7a0b\u5e8f\u3002\u5176\u8bbe\u8ba1\u7cbe\u9ad3\u53ef\u6982\u62ec\u4e3a&#xff1a;<\/p>\n<ul>\n<li>\u53cc\u6a21\u5f0f\u67b6\u6784&#xff1a;\u5355\u4e00\u4e8c\u8fdb\u5236\u5373\u53ef\u4f5c\u4e3a\u529f\u80fd\u9a71\u52a8\u6216\u8fc7\u6ee4\u9a71\u52a8&#xff0c;\u6781\u5927\u964d\u4f4e\u4e86\u90e8\u7f72\u590d\u6742\u5ea6\u3002<\/li>\n<li>\u5206\u5c42\u5904\u7406&#xff1a;\u660e\u786e\u7684 IRP \u6d3e\u53d1\u8def\u5f84&#xff0c;\u804c\u8d23\u6e05\u6670\u7684\u6a21\u5757\u5212\u5206&#xff08;PnP\u3001\u7535\u6e90\u3001IOCTL\u3001\u4f20\u8f93&#xff09;\u3002<\/li>\n<li>\u667a\u80fd\u7f13\u5b58&#xff1a;\u8bbe\u5907\/\u914d\u7f6e\u63cf\u8ff0\u7b26\u7f13\u5b58&#xff0c;\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684\u63a7\u5236\u4f20\u8f93\u3002<\/li>\n<li>\u5b89\u5168\u7b2c\u4e00&#xff1a;\u79fb\u9664\u9501\u3001\u7aef\u70b9\u987a\u5e8f\u9501\u3001\u53d6\u6d88\u540c\u6b65\u7b49\u5f85\u3001WDF \u89c4\u907f\u7b49\u673a\u5236&#xff0c;\u5145\u5206\u4fdd\u969c\u7cfb\u7edf\u7a33\u5b9a\u6027\u3002<\/li>\n<li>\u900f\u660e\u62c6\u5206&#xff1a;\u5927\u6570\u636e\u4f20\u8f93\u81ea\u52a8\u62c6\u5206\u4e3a\u591a\u4e2a URB&#xff0c;\u5bf9\u7528\u6237\u6001\u5b8c\u5168\u900f\u660e\u3002<\/li>\n<li>\u6ce8\u518c\u8868\u9a71\u52a8\u914d\u7f6e&#xff1a;\u901a\u8fc7 SurpriseRemovalOK \u548c InitialConfigValue \u7b49\u952e\u503c&#xff0c;\u7528\u6237\u53ef\u8f7b\u677e\u8c03\u6574\u9a71\u52a8\u884c\u4e3a\u3002<\/li>\n<\/ul>\n<p>\u901a\u8fc7\u8fd9\u56db\u7bc7\u6587\u6863\u7684\u6df1\u5165\u5206\u6790&#xff0c;\u6211\u4eec\u5b8c\u6574\u63ed\u793a\u4e86 libusb-win32 \u5185\u6838\u9a71\u52a8\u4ece\u5165\u53e3\u5230\u4f20\u8f93\u3001\u4ece\u914d\u7f6e\u5230\u6e05\u7406\u7684\u6bcf\u4e00\u5904\u7ec6\u8282\u3002\u8fd9\u4e9b\u77e5\u8bc6\u4e0d\u4ec5\u6709\u52a9\u4e8e\u7406\u89e3\u8be5\u9a71\u52a8\u7684\u5185\u90e8\u539f\u7406&#xff0c;\u4e5f\u4e3a\u7f16\u5199\u5176\u4ed6 Windows \u5185\u6838\u9a71\u52a8\u63d0\u4f9b\u4e86\u5b9d\u8d35\u7684\u53c2\u8003\u8303\u4f8b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>libusb-win32 \u5185\u6838\u9a71\u52a8\u6e90\u7801\u5206\u6790&#xff08;\u7b2c\u56db\u7bc7 \u00b7 \u603b\u7ed3\u7bc7&#xff09;&#xff1a;\u5b8c\u6574\u6570\u636e\u6d41\u3001\u540c\u6b65\u673a\u5236\u3001\u5185\u5b58\u7ba1\u7406\u4e0e\u5b89\u5168\u7b56\u7565<br \/>\n1. \u5f15\u8a00<br \/>\n\u524d\u4e09\u7bc7\u5206\u522b\u5256\u6790\u4e86\u9a71\u52a8\u6846\u67b6\u3001\u4f20\u8f93\u5f15\u64ce\u3001\u6ce8\u518c\u8868\u4e0e\u8f85\u52a9\u6a21\u5757\u3002\u672c\u7bc7\u4f5c\u4e3a\u5185\u6838\u9a71\u52a8\u5206\u6790\u7684\u6536\u5b98\u4e4b\u4f5c&#xff0c;\u65e8\u5728\u4e32\u8054\u5404\u6a21\u5757&#xff0c;\u52fe\u52d2\u5b8c\u6574\u6570\u636e\u6d41&#xff0c;\u5e76\u6df1\u5165\u63a2\u8ba8\u9a71\u52a8\u5185\u90e8\u7684\u540c\u6b65\u673a\u5236\u3001\u5185\u5b58\u7ba1\u7406\u3001\u9519\u8bef\u5904\u7406\u53ca\u5b89\u5168\u7b56\u7565\u3002\u8fd9\u4e9b\u5185\u5bb9\u867d\u672a\u5728\u524d\u4e09\u7bc7\u4e2d\u72ec\u7acb\u6210\u7ae0&#xff0c;\u4f46\u8d2f\u7a7f\u4e8e\u6bcf\u4e00\u884c\u4ee3\u7801\u4e4b\u4e2d&#xff0c;\u662f\u9a71\u52a8\u7a33\u5b9a\u8fd0\u884c<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[149,1363],"topic":[],"class_list":["post-99247","post","type-post","status-publish","format-standard","hentry","category-server","tag-windows","tag-1363"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>windows \u9a71\u52a8\u5b9e\u4f8b\u5206\u6790\u7cfb\u5217: libusb\u9a71\u52a8\u5206\u6790-\u9a71\u52a8\u5c42\u6e90\u7801\u7bc7(\u56db) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/99247.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"windows \u9a71\u52a8\u5b9e\u4f8b\u5206\u6790\u7cfb\u5217: libusb\u9a71\u52a8\u5206\u6790-\u9a71\u52a8\u5c42\u6e90\u7801\u7bc7(\u56db) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"libusb-win32 \u5185\u6838\u9a71\u52a8\u6e90\u7801\u5206\u6790&#xff08;\u7b2c\u56db\u7bc7 \u00b7 \u603b\u7ed3\u7bc7&#xff09;&#xff1a;\u5b8c\u6574\u6570\u636e\u6d41\u3001\u540c\u6b65\u673a\u5236\u3001\u5185\u5b58\u7ba1\u7406\u4e0e\u5b89\u5168\u7b56\u7565 1. \u5f15\u8a00 \u524d\u4e09\u7bc7\u5206\u522b\u5256\u6790\u4e86\u9a71\u52a8\u6846\u67b6\u3001\u4f20\u8f93\u5f15\u64ce\u3001\u6ce8\u518c\u8868\u4e0e\u8f85\u52a9\u6a21\u5757\u3002\u672c\u7bc7\u4f5c\u4e3a\u5185\u6838\u9a71\u52a8\u5206\u6790\u7684\u6536\u5b98\u4e4b\u4f5c&#xff0c;\u65e8\u5728\u4e32\u8054\u5404\u6a21\u5757&#xff0c;\u52fe\u52d2\u5b8c\u6574\u6570\u636e\u6d41&#xff0c;\u5e76\u6df1\u5165\u63a2\u8ba8\u9a71\u52a8\u5185\u90e8\u7684\u540c\u6b65\u673a\u5236\u3001\u5185\u5b58\u7ba1\u7406\u3001\u9519\u8bef\u5904\u7406\u53ca\u5b89\u5168\u7b56\u7565\u3002\u8fd9\u4e9b\u5185\u5bb9\u867d\u672a\u5728\u524d\u4e09\u7bc7\u4e2d\u72ec\u7acb\u6210\u7ae0&#xff0c;\u4f46\u8d2f\u7a7f\u4e8e\u6bcf\u4e00\u884c\u4ee3\u7801\u4e4b\u4e2d&#xff0c;\u662f\u9a71\u52a8\u7a33\u5b9a\u8fd0\u884c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/99247.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-02T00:49:48+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/99247.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/99247.html\",\"name\":\"windows \u9a71\u52a8\u5b9e\u4f8b\u5206\u6790\u7cfb\u5217: libusb\u9a71\u52a8\u5206\u6790-\u9a71\u52a8\u5c42\u6e90\u7801\u7bc7(\u56db) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-02T00:49:48+00:00\",\"dateModified\":\"2026-09-02T00:49:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/99247.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/99247.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/99247.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"windows \u9a71\u52a8\u5b9e\u4f8b\u5206\u6790\u7cfb\u5217: libusb\u9a71\u52a8\u5206\u6790-\u9a71\u52a8\u5c42\u6e90\u7801\u7bc7(\u56db)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"windows \u9a71\u52a8\u5b9e\u4f8b\u5206\u6790\u7cfb\u5217: libusb\u9a71\u52a8\u5206\u6790-\u9a71\u52a8\u5c42\u6e90\u7801\u7bc7(\u56db) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/99247.html","og_locale":"zh_CN","og_type":"article","og_title":"windows \u9a71\u52a8\u5b9e\u4f8b\u5206\u6790\u7cfb\u5217: libusb\u9a71\u52a8\u5206\u6790-\u9a71\u52a8\u5c42\u6e90\u7801\u7bc7(\u56db) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"libusb-win32 \u5185\u6838\u9a71\u52a8\u6e90\u7801\u5206\u6790&#xff08;\u7b2c\u56db\u7bc7 \u00b7 \u603b\u7ed3\u7bc7&#xff09;&#xff1a;\u5b8c\u6574\u6570\u636e\u6d41\u3001\u540c\u6b65\u673a\u5236\u3001\u5185\u5b58\u7ba1\u7406\u4e0e\u5b89\u5168\u7b56\u7565 1. \u5f15\u8a00 \u524d\u4e09\u7bc7\u5206\u522b\u5256\u6790\u4e86\u9a71\u52a8\u6846\u67b6\u3001\u4f20\u8f93\u5f15\u64ce\u3001\u6ce8\u518c\u8868\u4e0e\u8f85\u52a9\u6a21\u5757\u3002\u672c\u7bc7\u4f5c\u4e3a\u5185\u6838\u9a71\u52a8\u5206\u6790\u7684\u6536\u5b98\u4e4b\u4f5c&#xff0c;\u65e8\u5728\u4e32\u8054\u5404\u6a21\u5757&#xff0c;\u52fe\u52d2\u5b8c\u6574\u6570\u636e\u6d41&#xff0c;\u5e76\u6df1\u5165\u63a2\u8ba8\u9a71\u52a8\u5185\u90e8\u7684\u540c\u6b65\u673a\u5236\u3001\u5185\u5b58\u7ba1\u7406\u3001\u9519\u8bef\u5904\u7406\u53ca\u5b89\u5168\u7b56\u7565\u3002\u8fd9\u4e9b\u5185\u5bb9\u867d\u672a\u5728\u524d\u4e09\u7bc7\u4e2d\u72ec\u7acb\u6210\u7ae0&#xff0c;\u4f46\u8d2f\u7a7f\u4e8e\u6bcf\u4e00\u884c\u4ee3\u7801\u4e4b\u4e2d&#xff0c;\u662f\u9a71\u52a8\u7a33\u5b9a\u8fd0\u884c","og_url":"https:\/\/www.wsisp.com\/helps\/99247.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-02T00:49:48+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/99247.html","url":"https:\/\/www.wsisp.com\/helps\/99247.html","name":"windows \u9a71\u52a8\u5b9e\u4f8b\u5206\u6790\u7cfb\u5217: libusb\u9a71\u52a8\u5206\u6790-\u9a71\u52a8\u5c42\u6e90\u7801\u7bc7(\u56db) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-02T00:49:48+00:00","dateModified":"2026-09-02T00:49:48+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/99247.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/99247.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/99247.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"windows \u9a71\u52a8\u5b9e\u4f8b\u5206\u6790\u7cfb\u5217: libusb\u9a71\u52a8\u5206\u6790-\u9a71\u52a8\u5c42\u6e90\u7801\u7bc7(\u56db)"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/99247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=99247"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/99247\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=99247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=99247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=99247"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=99247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}