Microsoft Windows CE 3.0  

IDirectDrawVideoPort::SetTargetSurface

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The IDirectDrawVideoPort::SetTargetSurfacemethod sets the DirectDraw surface object that will receive the stream of live video data and/or the vertical blank interval data.

HRESULT SetTargetSurface(
LPDIRECTDRAWSURFACE
lpDDSurface
,
DWORD
dwFlags
);

Parameters

lpDDSurface
Address of the DirectDrawSurface object that will receive the video data.
dwFlags
Value specifying the type of target surface.
DDVPTARGET_VIDEO The specified surface should receive the normal video data and vertical interval data unless a separate surface was attached for this purpose.
DDVPTARGET_VBI The specified surface should receive the data within the vertical blanking interval.

Return Values

If the method succeeds, the return value is DD_OK.

If the method fails, the return value may be one of the following error values:

Requirements

Runs on Versions Declared in Link to
Windows CE OS 2.12 or later. Version 2.12 requires DXPAK 1.0 or later. dvp.h ddraw.lib

See Also

IDirectDrawVideoPort::StartVideo, IDirectDrawVideoPort::StopVideo, IDirectDrawVideoPort::UpdateVideo