Unmounts an image from a Windows® image (.wim) that was previously mounted with the WIMMountImageHandle function.

BOOL
WINAPI
WIMUnmountImageHandle(
	HANDLE hImage,
	DWORD dwUnmountFlags
	);

Parameters

hImage.

[in] A handle to an image previously mounted with WIMMountImageHandle.

dwUnmountFlags

[in] Reserved. Must be zero.

Return Value

Returns TRUE and sets the LastError to ERROR_SUCCESS on the successful completion of this function. Returns FALSE in case of a failure and sets the LastError to the appropriate Win32® error value.

Remarks

The WIMUnmountImageHandle function unmaps the contents of the given image in the .wim file from the specified mount directory. After the successful completion of this operation, users or applications will not be able to access the contents of the image previously mapped under the mount directory.

See Also