Platform SDK: DirectX

IDirectDraw7::GetVerticalBlankStatus

The IDirectDraw7::GetVerticalBlankStatus method retrieves the status of the vertical blank.

HRESULT GetVerticalBlankStatus(
  LPBOOL lpbIsInVB  
);

Parameters

lpbIsInVB
Address of a variable to be filled with the status of the vertical blank. This parameter is TRUE if a vertical blank is occurring, and FALSE otherwise.

Return Values

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

Remarks

To synchronize with the vertical blank, use the IDirectDraw7::WaitForVerticalBlank method.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 98.
  Header: Declared in ddraw.h.

See Also

IDirectDraw7::GetScanLine, IDirectDraw7::WaitForVerticalBlank