IDirectDraw7::Initialize method (ddraw.h)
Initializes a DirectDraw object that was created by using the CoCreateInstance COM function.
Syntax
HRESULT Initialize(
[in] GUID *unnamedParam1
);
Parameters
[in] unnamedParam1
A pointer to the globally unique identifier (GUID) that this method uses as the DirectDraw interface identifier.
Return value
If the method succeeds, the return value is DD_OK.
If it fails, the method can return one of the following error values:
- DDERR_ALREADYINITIALIZED
- DDERR_DIRECTDRAWALREADYCREATED
- DDERR_GENERIC
- DDERR_INVALIDOBJECT
- DDERR_INVALIDPARAMS
- DDERR_NODIRECTDRAWHW
- DDERR_NODIRECTDRAWSUPPORT
- DDERR_OUTOFMEMORY
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | ddraw.h |
Library | Ddraw.lib |
DLL | Ddraw.dll |