开发者

Obtain volume help

开发者 https://www.devze.com 2023-04-06 07:07 出处:网络
How can I get a pointer to VolumeDeviceObject? http://msdn.microsoft.com/en-us/library/windows/hardware/ff563030(v=vs.85).aspx

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消