Mount method of the MSFT_DiskImage class
Mounts the disk image.
Syntax
UInt32 Mount(
[in] UInt16 Access,
[in] Boolean NoDriveLetter
);
Parameters
Access [in]
The access for the disk image.
Unknown (0)
Read Write (2)
Read-Only (3)
NoDriveLetter [in]
If TRUE, the disk image shouldn't be assigned a drive letter.
Return value
If Access is not DEVICE_ACCESS_READ_ONLY or DEVICE_ACCESS_READ_WRITE, this method returns E_INVALIDARG.
Otherwise, this method returns OpenVirtualDisk and AttachVirtualDisk error codes converted to HRESULT codes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Namespace | Root\Microsoft\Windows\Storage |
Header | Vds.h |
MOF | Storagewmi.mof |