| DirectX SDK | 
The DirectDraw7.WaitForVerticalBlank method helps the application synchronize itself with the vertical blank interval.
object.WaitForVerticalBlank( _ 
    flags As CONST_DDWAITVBFLAGS, _ 
    handle As Long) As Long
If the method succeeds, it returns DD_OK, indicating that the calling application can continue.
If the method fails or the return value is not DD_OK, an error is raised, and Err.Number can be set to one of the following values:
| DDERR_INVALIDOBJECT | 
| DDERR_INVALIDPARAMS | 
| DDERR_UNSUPPORTED | 
| DD_OK | 
| DDERR_WASSTILLDRAWING |