HRESULT Initialize(GUID FAR * lpGUID);
Initializes the DirectDraw object that was created by using the CoCreateInstance OLE function.
·Returns DD_OK if successful, or one of the following error values otherwise:
DDERR_DIRECTDRAWALREADYCREATED
lpGUID
Address of the globally unique identifier (GUID) used as the interface identifier.
This method is provided for compliance with the Component Object Model (COM) protocol. If the DirectDrawCreate function was used to create the DirectDraw object, this method returns DDERR_ALREADYINITIALIZED. If IDirectDraw2::Initialize is not called when using CoCreateInstance to create the DirectDraw object, any method that is called afterward returns DDERR_NOTINITIALIZED.
For more information about using IDirectDraw2::Initialize with CoCreateInstance, see Creating DirectDraw Objects by Using CoCreateInstance.