24,855
社区成员
发帖
与我相关
我的任务
分享
#include "stdio.h"
#include <windows.h>
#include <SetupAPI.h>
#include "initguid.h"
#pragma comment(lib, "SetupAPI.lib")
DEFINE_GUID(GUID_XHB1509A, 0x4dda4980, 0x9ed5, 0x4921, 0xbc, 0xf4, 0x29, 0xcb, 0xa3, 0xf0, 0x43, 0x6d);
int main()
{
printf("\n");
GetLastError();
SetupDiGetClassDevs((LPGUID)&GUID_XHB1509A, NULL, NULL, DIGCF_PRESENT | DIGCF_INTERFACEDEVICE);
}