DismRemountImage function
Remounts a previously mounted Windows image from the .wim or .vhd file at the path specified by MountPath. Use DismOpenSession to associate the image with a DismSession after it is remounted.
You can use the DismRemountImage function when the image is in the DismMountStatusNeedsRemount state, as described by the DismMountStatus enumeration. The image may enter this state if it is mounted and then a reboot occurs.
Syntax
HRESULT WINAPI DismRemountImage(
_In_ PCWSTR MountPath
);
Parameters
MountPath [in]
A relative or absolute path to the mount directory of the image.
Return value
A relative or absolute path to the mount directory of the image.
Example
HRESULT hr = S_OK;
DismSession* Session = NULL;
hr = DismRemountImage(L"C:\\Mount\\");
Requirements
Requirement | Description |
---|---|
Supported host platforms for .wim files | DISM API can be used on any operating system supported by the Windows Assessment and Deployment Kit (Windows ADK). For more information, see the Windows ADK Technical Reference. |
Supported host platforms for .vhd files | Windows 7, Windows Server 2008 R2, Windows PE 3.0, Windows 8, Windows Server 2012, Windows Preinstallation Environment (Windows PE) 4.0, Windows 8.1, Windows Server 2012 R2, Windows 10, Windows Server 2016 |
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Header | DismAPI.h |
Library | DismAPI.lib |
DLL | DismAPI.dll |