Platform SDK: DirectX

IDirectDrawSurface7::Initialize

The IDirectDrawSurface7::Initialize method initializes a DirectDrawSurface object.

HRESULT Initialize(
  LPDIRECTDRAW lpDD,               
  LPDDSURFACEDESC2 lpDDSurfaceDesc  
);

Parameters

lpDD
Address of the DirectDraw structure that represents the DirectDraw object.
lpDDSurfaceDesc
Address of a DDSURFACEDESC2 structure to be filled with the relevant details about the surface.

Return Values

The method returns DDERR_ALREADYINITIALIZED.

Remarks

This method is provided for compliance with the Component Object Model (COM). Because the DirectDrawSurface object is initialized when it is created, this method always returns DDERR_ALREADYINITIALIZED.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 98.
  Header: Declared in ddraw.h.

See Also

IUnknown::AddRef, IUnknown::QueryInterface, IUnknown::Release