IDirectDrawSurface7::Initialize method

Initializes a DirectDrawSurface object.

Syntax


HRESULT Initialize(
  [in] LPDIRECTDRAW     lpDD,
  [in] LPDDSURFACEDESC2 lpDDSurfaceDesc
);

Parameters

lpDD [in]

A pointer to the DirectDraw object to associate with the DirectDrawSurface object.

lpDDSurfaceDesc [in]

A pointer to a DDSURFACEDESC2 structure that describes how to initialize this surface.

Return value

This method returns DDERR_ALREADYINITIALIZED.

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.

Remarks

You must use LoadLibrary to explicitly link to Ddraw.dll and then use GetProcAddress to access the Initialize method.

Requirements

Header

Ddraw.h

Library

Ddraw.lib

DLL

Ddraw.dll

See also

IDirectDrawSurface7

 

 

Show: