how to mount a volume in kernel and not from user DefineDosDevice API?

Who could give me a example on how to mount a volume using IOCTL_MOUNTMGR_CREATE_POINT irp.
I follow the example of msdn but I failed to mount anything.

craig

What exactly do you mean by “mounting” a volume ? NT does not have the same concept of mounting like UNIX. The device is mounted on first call to open the device. So if you know the name of the device (\Device\HardDiskVolume1 for example), just open the device to mount it. DeviceDosDevice just sets up a symbolic link from the win32 name space (accessible via win32 APIs) into the native windows NT name space.


This posting is provided “AS IS” with no warranties, and confers no rights.
“craiglei” wrote in message news:xxxxx@ntdev…
Who could give me a example on how to mount a volume using IOCTL_MOUNTMGR_CREATE_POINT irp.
I follow the example of msdn but I failed to mount anything.

craig