IDirectDrawClipper::GetClipList

HRESULT GetClipList(LPRECT lpRect,

LPRGNDATA lpClipList, LPDWORD lpdwSize);

Returns a copy of the clip list associated with a DirectDrawClipper object. A subset of the clip list can be selected by passing a rectangle that clips the clip list.

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

DDERR_GENERIC DDERR_INVALIDCLIPLIST
DDERR_INVALIDOBJECT DDERR_INVALIDPARAMS
DDERR_NOCLIPLIST DDERR_REGIONTOOSMALL

lpRect

Address of a rectangle that will be used to clip the clip list.

lpClipList

Address of an RGNDATA structure that will contain the resulting copy of the clip list.

lpdwSize

Set by IDirectDrawClipper::GetClipList to indicate the size of the resulting clip list.