Microsoft DirectX 9.0

IDirectDrawSurface::Initialize

The Initialize method initializes a DirectDrawSurface. This method is provided for compliance with COM. Because the DirectDrawSurface object is initialized when it is created, this method always returns DDERR_ALREADYINITIALIZED.

Syntax

HRESULT Initialize(
  LPDIRECTDRAW lpDD,
  LPDDSURFACEDESC lpDDSurfaceDesc
  );

Parameters

lpDD

Points to the IDirectDraw interface of the DirectDraw object.

lpDDSurfaceDesc

Points to a DDSURFACEDESC structure to be filled in with the relevant details about the surface.

Return Values

Value Description
DDERR_ALREADYINITIALIZED This object is already initialized.

See Also