Obtain volume help
How can I get a pointer to VolumeDeviceObject?
http://msdn.microsoft.com/en-us/library/windows/hardware/ff563030(v=vs.85).aspx
NTSTATUS RtlVolumeDeviceToDosName(
__in PVOID VolumeDevice开发者_如何学CObject,
__out PUNICODE_STRING DosName
);
VolumeDeviceObject [in] Pointer to a device object that represents a volume device object created by a storage class driver.
You can try using IoGetDeviceObjectPointer. It returns a device object for the specified string.
精彩评论