Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Namespace

Root\Microsoft\Windows\Storage

MOF

Storagewmi.mof

See also

MSFT_DiskImage

 

 

Show: