我有一设备,物理设备对象名称为\Device\USBPDO-10,如何打开??
我用 hDevice = CreateFile(TEXT("\\\\.\\Device\\USBPDO-10"), // drive to open
0, // no access to the drive
FILE_SHARE_READ | // share mode
FILE_SHARE_WRITE,
NULL, // default security attributes
OPEN_EXISTING, // disposition
0, // file attributes
NULL);
打开失败,用
hDevice = CreateFile(TEXT("\\\\.\\USBPDO-10"), // drive to open
0, // no access to the drive
FILE_SHARE_READ | // share mode
FILE_SHARE_WRITE,
NULL, // default security attributes
OPEN_EXISTING, // disposition
0, // file attributes
NULL);
还是失败,哪位知道如何得到设备句柄,我没有安装DDK或者WDK