Platform SDK: DirectX

DirectDraw7.GetVerticalBlankStatus

The DirectDraw7.GetVerticalBlankStatus method retrieves the status of the vertical blank.

object.GetVerticalBlankStatus() As Long

Parameters

object
Object expression that resolves to a DirectDraw7 object.

Return Values

If the method succeeds, it returns the status of the vertical blank. This parameter is 0 if a vertical blank is occurring, and nonzero otherwise.

Error Codes

If the method fails, it raises an error, and Err.Number can be set to one of the following values:

DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS

Remarks

To synchronize with the vertical blank, use the DirectDraw7.WaitForVerticalBlank method.

See Also

DirectDraw7.GetScanLine, DirectDraw7.WaitForVerticalBlank