DISM API Constants
You can use the DISM API to install, uninstall, configure, and update Windows features, packages, and drivers in a Windows image.
The constant values defined by the DISM API are described in this topic.
Syntax
DISM_ONLINE_IMAGE
DISM_MOUNT_READWRITE
DISM_MOUNT_READONLY
DISM_MOUNT_OPTIMIZE
DISM_MOUNT_CHECK_INTEGRITY
DISM_COMMIT_IMAGE
DISM_DISCARD_IMAGE
DISM_COMMIT_GENERATE_INTEGRITY
DISM_COMMIT_APPEND
DISM_COMMIT_MASK
DISM_RESERVED_STORAGE_DISABLED
DISM_RESERVED_STORAGE_ENABLED
Constants
Name | Description |
---|---|
DISM_ONLINE_IMAGE | Indicates to the DismOpenSession Function that the online operating system, %windir%, should be associated to the DISMSession for servicing. |
DISM_MOUNT_READWRITE | Indicates to the DismMountImage Function that the image should be mounted with both read and write access. |
DISM_MOUNT_READONLY | Indicates to the DismMountImage Function that the image should be mounted with read access only. |
DISM_MOUNT_OPTIMIZE | Indicates to the DismMountImage Function that the image should be mounted with optimization. When the optimize option is used, only the top level of the file directory in the image will be mapped to the mount location. The first time that you access a file path that is not initially mapped, that branch of the directory will be mounted. As a result, there may be an increase in the time that is required to access a directory for the first time after mounting an image using the optimize option. |
DISM_MOUNT_CHECK_INTEGRITY | Indicates to the DismMountImage Function to set a flag on the image specifying whether the image is corrupted. |
DISM_COMMIT_IMAGE | Indicates to the DismCommitImage Function or the DismUnmountImage Function that changes to the image should be saved. |
DISM_DISCARD_IMAGE | Indicates to the DismCommitImage Function or the DismUnmountImage Function that changes to the image should not be saved. |
DISM_COMMIT_GENERATE_INTEGRITY | Indicates to the DismCommitImage Function or the DismUnmountImage Function to set a flag on the image specifying whether the image is corrupted. |
DISM_COMMIT_APPEND | Indicates to the DismCommitImage Function or the DismUnmountImage Function that changes to the image should be saved. |
DISM_COMMIT_MASK | Indicates to the DismUnmountImage Function that all changes should be saved. This flag is equivalent to using DISM_COMMIT_IMAGE, DISM_COMMIT_GENERATE_INTEGRITY, and DISM_COMMIT_APPEND. |
DISM_RESERVED_STORAGE_DISABLED | Indicates to the DismSetReservedStorageState Function that reserved storage should be disabled. |
DISM_RESERVED_STORAGE_ENABLED | Indicates to the DismSetReservedStorageState Function that reserved storage should be enabled. |
Requirements
Requirement | Description |
---|---|
Supported host platform | 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 image platform | Windows 7, Windows Server 2008 R2, Windows 8, Windows Server 2012 |