Microsoft DirectX 9.0

IDirectDraw::GetVerticalBlankStatus

The GetVerticalBlankStatus method returns the status of the vertical blank. It will set the passed BOOL to TRUE if it is in the vertical blank and FALSE otherwise. To synchronize with the vertical blank, consider using WaitForVerticalBlank.

Syntax

HRESULT GetVerticalBlankStatus(
  LPBOOL lpbIsInVB
  );

Parameters

lpbIsInVB

Points to the BOOL that will be filled in with the status of the vertical blank.

Return Values

Value Description
DD_OK The method succeeded.
DDERR_INVALIDOBJECT DirectDraw received a pointer that was an invalid DirectDraw object.
DDERR_INVALIDPARAMS One or more of the input parameters is invalid.

See Also