| DirectX SDK | 
The DirectDraw7.GetVerticalBlankStatus method retrieves the status of the vertical blank.
object.GetVerticalBlankStatus() As Long
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.
If the method fails, it raises an error, and Err.Number can be set to one of the following values:
| DDERR_INVALIDOBJECT | 
| DDERR_INVALIDPARAMS | 
To synchronize with the vertical blank, use the DirectDraw7.WaitForVerticalBlank method.