IDirectDrawSurface2::SetOverlayPosition

HRESULT SetOverlayPosition(LONG lX, LONG lY);

Changes the display coordinates of an overlay surface.

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

DDERR_GENERIC

DDERR_INVALIDOBJECT

DDERR_INVALIDPARAMS

DDERR_SURFACELOST

DDERR_UNSUPPORTED

lX and lY

New x- and y-display coordinates.