DismGetCapabilities function
Gets DISM capabilities.
Syntax
HRESULT WINAPI DismGetCapabilities(
_In_ DismSession Session,
_OUT_ DismCapability **Capability,
_OUT_ UINT *Count
);
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.
Capability [out]
A pointer to the array of DismCapability structures.
Count [out]
The number of DismCapability structures that are returned.
Return value
Returns S_OK
on success.
Example
HRESULT hr = S_OK;
DismCapability* Capability = NULL;
UINT CapabilityCount;
hr = DismGetCapabilities(Session, &Capability, &CapabilityCount);
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, Windows Server 2016 |
Minimum supported client | Windows 10 [desktop apps only] |
Minimum supported server | Windows Server 2016 [desktop apps only] |
Header | DismAPI.h |
Library | DismAPI.lib |
DLL | DismAPI.dll |