Hi,
To create a virtual disk with DefineDosDevice function, it can’t be seen on disk management, and so it can’t do disk defragmentation nor error-checking, is there a way to make it work on disk manager?
On 11/17/2010 2:45 AM, xxxxx@gmail.com wrote:
Hi,
To create a virtual disk with DefineDosDevice function, it can’t be seen on disk management, and so it can’t do disk defragmentation nor error-checking, is there a way to make it work on disk manager?
No, by defining a symlink using this API you are creating a mapping from
the kernel object to user mode. Mount mgr is not involved and therefore
anyone who enumerates via Mnt Mgr will not see it.
To get this right takes quite a bit of work. Either writing a bus filter
that injects your devices into an existing buses child list or write a
virtual bus driver. While the latter is more code, the former is very
difficult to get correct.
Pete
NTFSD is sponsored by OSR
For our schedule of debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminarsTo unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
–
Kernel Drivers
Windows File System and Device Driver Consulting
www.KernelDrivers.com
866.263.9295