IDirectDrawSurface7::Initialize method (ddraw.h)

Initializes a DirectDrawSurface object.

Syntax

HRESULT Initialize(
  LPDIRECTDRAW     ,
  LPDDSURFACEDESC2 
);

Parameters

unnamedParam1

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

unnamedParam2

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

   
Target Platform Windows
Header ddraw.h
Library Ddraw.lib
DLL Ddraw.dll

See also

IDirectDrawSurface7