IDirectDrawClipper::Initialize

HRESULT Initialize(LPDIRECTDRAW lpDD, DWORD dwFlags);

Initializes a DirectDrawClipper object that was created by using the CoCreateInstance OLE function.

·Returns DD_OK if successful, or one of the following error values otherwise:

DDERR_ALREADYINITIALIZED

DDERR_INVALIDPARAMS

lpDD

Address of the DirectDraw structure that represents the DirectDraw object. If this parameter is set to NULL, an independent DirectDrawClipper object is created (the equivalent of using the DirectDrawCreateClipper function).

dwFlags

This parameter is currently not used and must be set to 0.

This method is provided for compliance with the Component Object Model (COM) protocol. If DirectDrawCreateClipper or the IDirectDraw2::CreateClipper method was used to create the DirectDrawClipper object, this method returns DDERR_ALREADYINITIALIZED.

For more information about using IDirectDrawClipper::Initialize with CoCreateInstance, see Creating DirectDrawClipper Objects with CoCreateInstance.