Condividi tramite


IDirectDraw3::GetSurfaceFromDC

 
Microsoft DirectShow 9.0

IDirectDraw3::GetSurfaceFromDC

  • Note   The IDirectDraw3 interface is deprecated.

Retrieves a pointer to an IDirectDrawSurface interface from a handle to a device context.

Syntax

  STDMETHOD GetSurfaceFromDC(
  HDC hdc,
  IDirectDrawSurface **ppSurface
);

Parameters

hdc

[in] Handle of the device context (DC).

ppSurface

[out] Address of a pointer to an IDirectDrawSurface interface.

Return Value

Returns S_OK if successful, or one of the following values otherwise.

Value Description
DDERR_NOTFOUND The requested item wasn't found.
E_POINTER Invalid pointer to IDirectDrawSurface.

Requirements

Reference: Dshow.h.

Library: Quartz.dll.

See Also