IDirectDrawSurface7::Initialize method (ddraw.h)
Initializes a DirectDrawSurface object.
Syntax
HRESULT Initialize(
[in] LPDIRECTDRAW unnamedParam1,
[in] LPDDSURFACEDESC2 unnamedParam2
);
Parameters
[in] unnamedParam1
A pointer to the DirectDraw object to associate with the DirectDrawSurface object.
[in] 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.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | ddraw.h |
Library | Ddraw.lib |
DLL | Ddraw.dll |