IDirectDrawSurface::Initialize

HRESULT Initialize(LPDIRECTDRAW lpDD,

LPDDSURFACEDESC lpDDSurfaceDesc);

Initializes a DirectDrawSurface.

·Returns DDERR_ALREADYINITIALIZED.

lpDD

Address of the DirectDraw structure that represents the DirectDraw object.

lpDDSurfaceDesc

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

This method is provided for compliance with the Component Object Model (COM) protocol. Since the DirectDrawSurface object is initialized when it is created, calling this method will always result in the DDERR_ALREADYINITIALIZED return value.