阅读:1383回复:1
这种方式打开SD卡设备为什么不行?
wince5.0系统,SD卡在注册表的名称为DSK1,
hVolume = CreateFile(TEXT("DSK1:"), GENERIC_READ|GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);这样打开则没有任何问题,但是查看帮助手册: hDevice [in] Handle to the block device storage volume, which can be obtained by opening the FAT volume by its file system entry. The following code example shows how to open a PC Card storage volume. hVolume = CreateFile(TEXT("\Storage Card\Vol:"), GENERIC_READ|GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL); 这样却打不开,不知该怎样做才行?系统是支持FAT文件系统的。SD卡驱动需要怎样修改才能以这方式打开啊?恳求各位出手帮忙,谢谢! |
|
沙发#
发布于:2008-09-04 13:29
,搞定,开始担心系统文件FATFS不支持Volume呢,原来是格式化时没有添加Vol。
|
|