GetClipper Method

IDirectDrawSurface7::GetClipper method

Retrieves the DirectDrawClipper object that is associated with this surface, and increments the reference count of the returned clipper.

Syntax


HRESULT GetClipper(
  [out] LPDIRECTDRAWCLIPPER FAR *lplpDDClipper
);

Parameters

lplpDDClipper [out]

A pointer to a variable to receive a pointer to the clipper's IDirectDrawClipper interface.

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_INVALIDOBJECT
  • DDERR_INVALIDPARAMS
  • DDERR_NOCLIPPERATTACHED

Remarks

You must use LoadLibrary to explicitly link to Ddraw.dll and then use GetProcAddress to access the GetClipper method.

Requirements

Header

Ddraw.h

Library

Ddraw.lib

DLL

Ddraw.dll

See also

IDirectDrawSurface7

 

 

Show:
© 2016 Microsoft