|
[求助]如何从卷设备得到其所在磁盘信息
多谢多谢~~~~~~~~~~~~ |
|
[求助]如何从卷设备得到其所在磁盘信息
我要通过卷设备得到物理硬盘符号,例如\device\harddisk0 |
|
[求助]关于WIN下磁盘分区,挂载问题,谢谢
搞定了,因为磁盘和分区编号是已知的,WINDOWS又为每个分区都建立了个叫partition(分区编号的)的符号链接,因此直接DefineDosDevice(DDD_RAW_TARGET_PATH, "XX:", "\\device\\harddiskX\\partitionX")就OK了 |
|
[求助]关于WIN下磁盘分区,挂载问题,谢谢
CreateFile这个也不打开啊,还是getlasterror还是3 |
|
[求助]关于WIN下磁盘分区,挂载问题,谢谢
对了,又出现新问题了,我现在针对的U盘等设备的分区名字不是Harddisk开头,而是DP(1)开头的啊,而且后缀不固定,例如DP(1)0-0+12,DP(1)0-0+14等等 请问又有什么办法呢? |
|
[求助]关于WIN下磁盘分区,挂载问题,谢谢
const char *fmt = "\\Device\\HarddiskVolume%d"; for(size_t i = 0; i < 1000; ++i) { sprintf(buf, fmt, i); printf("buf == %s\r\n",buf); HANDLE hdl=::CreateFileA(buf,GENERIC_READ,FILE_SHARE_READ|FILE_SHARE_WRITE,0,OPEN_EXISTING,0,0); 这里都失败啊?每个都失败,好像无法打开任何一个\\Device\\HarddiskVolume%d";啊 PS:是不是调用 NtCreateFile啊? |
|
[求助]关于WIN下磁盘分区,挂载问题,谢谢
多谢多谢,我试试去! |
|
|
|
[求助]关于WIN下磁盘分区,挂载问题,谢谢
多谢,我现在的问题是得不到设备名(DefineDosDevice 这个函数应该是把设备名映射为盘符),因为新分好的分区的设备名是不固定的(或者新分好的分区的名字是可以检索到的)? |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值