IDirectDraw2::GetScanLine

HRESULT GetScanLine(LPDWORD lpdwScanLine);

Retrieves the scanline that is currently being drawn on the monitor.

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

DDERR_INVALIDOBJECT

DDERR_INVALIDPARAMS

DDERR_UNSUPPORTED

DDERR_VERTICALBLANKINPROGRESS

lpdwScanLine

Address of the variable that will contain the scanline the display is currently on.