IPresentationManager::CreatePresentationSurface method (presentation.h)
Creates a presentation surface for a piece of content that can be hosted in a visual tree and assigned a single front buffer.
Syntax
HRESULT CreatePresentationSurface(
HANDLE compositionSurfaceHandle,
IPresentationSurface **presentationSurface
);
Parameters
compositionSurfaceHandle
Type: HANDLE
A handle to the composition surface to bind the presentation surface to.
presentationSurface
Type: IPresentationSurface
The created presentation surface.
Return value
Type: HRESULT
If the function succeeds, it returns S_OK
; otherwise, it returns an HRESULT
value that indicates the error.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Build 22000 |
Minimum supported server | Windows Build 22000 |
Header | presentation.h |
Library | dcomp.lib |
DLL | dcomp.dll |