DismDelete function

Releases resources held by a structure or an array of structures returned by other DISM API Functions.

Syntax

HRESULT WINAPI DismDelete(
  _In_ VOID *DismStructure
);

Parameters

DismStructure [in]
A pointer to the structure, or array of structures, to be deleted. The structure must have been returned by an earlier call to a DISM API function.

Return value

Returns S_OK on success.

Remarks

All structures that are returned by DISM API functions are allocated on the heap. The client must not delete or free these structures directly. Instead, the client should call DismDelete and pass in the pointer that was returned by the earlier DISM API call.

Example

HRESULT hr = S_OK;
hr = DismDelete(ImageInfo);

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.
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

See also

DISM API Functions

DismAddDriver