📄 usbcomm.cpp
字号:
#include "stdafx.h"
#include "stdlib.h"
#include "usb100.h"
//函数主体
// get setup API functions (only available in Win98 and Win2K)
#include <setupapi.h>
// requires to link with setupapi.lib
// Link with SetupAPI.Lib.
#pragma comment (lib, "setupapi.lib")
#define BulkDriverDevice_CLASS_GUID \
{ 0x6b24cc69, 0x42d, 0x431d, { 0xb7, 0x40, 0x37, 0x65, 0x18, 0x1e, 0xb4, 0x95 } };
// { 0xc5df46cf, 0xfb46, 0x45ea, { 0x82, 0x1f, 0xb5, 0x60, 0x5, 0x37, 0xcd, 0xa1 } }
static GUID ClassGuid = BulkDriverDevice_CLASS_GUID;
HANDLE OpenByInterface(GUID* pClassGuid, DWORD instance, PDWORD pError);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -