DismSetReservedStorageState function

Sets the reserved storage state of the image.

Syntax

HRESULT WINAPI DismSetReservedStorageState(
  _In_ DismSession Session,
  _In_ DWORD State
);

Parameters

Session [in]
A valid DismSession. The DismSession must be associated with an image. You can associate a session with an image by using the DismOpenSession.

State [in]
The reserved storage state of the image. For more information, see DISM API Constants.

Return value

Returns S_OK on success.

Remarks

Use this function to set the reserved storage state of an image.

Example

HRESULT hr = S_OK;
hr = DismSetReservedStorageState(Session, DISM_RESERVED_STORAGE_ENABLED);

Requirements

Requirement Description
Supported host platforms 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 platforms Windows 10, version 2004
Header DismAPI.h
Library DismAPI.lib
DLL DismAPI.dll

See also

DismGetReservedStorageState