阅读:1313回复:7
请问一下怎么虚拟一个分区出来
做一个有点像filedisk一样的东西,filedisk是用的一个文件弄出一个分区来。我想如果用一个用一个分区代替文件,可以不,我觉得是可以的。不过,在应用程序,我们一般是用\\.\\c:这样的形式打开的。为什么在驱动中用\\.\\c:,这样会说,找不到这个路径呢。谢谢。。。打开时,用的函数是:ZwCreateFile
|
|
沙发#
发布于:2007-01-19 06:31
DDK:
Using Files In A Driver The Microsoft Windows executive represents files by file objects, which are executive objects that are managed by the object manager. (Directories are also represented by file objects.) Kernel-mode components refer to a file by its object name, which is \DosDevices concatenated to the file's full path. (On Microsoft Windows 2000 and later versions of the operating system, \?? is equivalent to \DosDevices.) For example, the object name of the C:\WINDOWS\example.txt file is \DosDevices\C:\WINDOWS\example.txt. You use the object name to open a handle to a file. For more information about object names, see Object Names. |
|
|
板凳#
发布于:2007-01-20 00:11
可不可以不要说英语呀。我看不明白。。。555
|
|
地板#
发布于:2007-01-23 16:41
\\.\\c : 驱动中不知道\\.表示什么意思吧
驱动中用\\??\\C: |
|
|
地下室#
发布于:2007-01-23 21:02
呵呵。谢谢。
|
|
5楼#
发布于:2007-01-29 12:36
turecrypt
|
|
6楼#
发布于:2007-01-29 16:50
turecrypt确实可以,不过太危险了。因为要先把原来分区进行格式化。
|
|
7楼#
发布于:2007-01-30 13:29
turecrypt 怎么才能做到 加密,保留原来的数据!????
|
|
|