IDirectDraw7::GetVerticalBlankStatus method

Retrieves the status of the vertical blank.

Syntax


HRESULT GetVerticalBlankStatus(
  [out] LPBOOL lpbIsInVB
);

Parameters

lpbIsInVB [out]

A pointer to a variable that receives the status of the vertical blank. This parameter is TRUE if a vertical blank is occurring, and FALSE otherwise.

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

Remarks

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

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

Requirements

Header

Ddraw.h

Library

Ddraw.lib

DLL

Ddraw.dll

See also

IDirectDraw7

 

 

Show: