引用: 引用 13 楼 xy1001 的回复:
引用 8 楼 orangeman1982112 的回复:
Catalog item:“Bluetooth Stack with Universal Loadable Driver”怎么加呀?我不懂!!catalog Item里面没找到!!!
Core OS > Windows CE devices > Communication Services and Networking > Networking - Personal Area Network (PAN) > Bluetooth > Bluetooth Protocol Stack with Transport Driver Support
我加了这个组件,但是在HCI_OpenConnection函数中执行:
hFile = CreateFile(szComPortName, //szComPortName = CSR1:
GENERIC_READ | GENERIC_WRITE,
0, // comm devices must be opened w/exclusive-access
NULL, // no security attrs
OPEN_EXISTING, // comm devices must use OPEN_EXISTING
FILE_ATTRIBUTE_NORMAL, // overlapped I/O
NULL // hTemplate must be NULL for comm devices
);
还是失败,返回错误结果为:0x37(The specified network resource or device is no longer available)。
请高手指教啊,谢谢啦。