摘要: //打开一个设备接口 1 bool OpenDevice(GUID Guid, int maxInfNum) 2 { 3 HDEVINFO hwDevInfo = SetupDiGetClassDevs(&Guid, NULL, NULL, DIGCF_PRESENT|DIGCF_DEVICEINTERFACE); 4 if ( INVALID_HANDLE_VALUE == hwDevInfo ) 5 return false; 6 for ( unsigned int infIndex = 0; infIndex < maxInfNum; ++inf... 阅读全文
posted @ 2012-10-12 22:58 Gomen 阅读(661) 评论(0) 推荐(0) 编辑
摘要: 类的成员函数指针数组 阅读全文
posted @ 2012-10-12 13:24 Gomen 阅读(402) 评论(1) 推荐(0) 编辑