DirectX SDK

DirectDraw7.WaitForVerticalBlank

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

Parameters

object
Object expression that resolves to a DirectDraw7 object.
flags
One of the constants of the CONST_DDWAITVBFLAGS enumeration specifying how long to wait for the vertical blank.
handle
Handle of the event to be triggered when the vertical blank begins. This parameter is not currently used.

Return Values

If the method succeeds, it returns DD_OK, indicating that the calling application can continue.

Error Codes

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

See Also

DirectDraw7.GetVerticalBlankStatus, DirectDraw7.GetScanLine