Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates a new composition surface object that wraps an existing composition surface.
Syntax
HRESULT CreateSurfaceFromHandle(
[in] HANDLE handle,
[out] IUnknown **surface
);
Parameters
[in] handle
The handle of an existing composition surface that was created by a call to the DCompositionCreateSurfaceHandle function.
[out] surface
The new composition surface object. This parameter must not be NULL.
Return value
If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. See DirectComposition Error Codes for a list of error codes.
Requirements
| Requirement | Value |
|---|---|
| Target Platform | Windows |
| Header | dcomp.h |