IDirectDrawSurface2::GetFlipStatus
HRESULT GetFlipStatus(DWORD dwFlags);
Indicates whether the surface has finished its flipping process.
·Returns DD_OK if successful, DDERR_WASSTILLDRAWING if the surface has not finished its flipping process, or one of the following error values otherwise:
dwFlags
One of the following flags:
Inquires whether this surface can be flipped immediately and returns DD_OK if the flip can be completed.
Inquires whether the flip has finished and returns DD_OK if the last flip on this surface has completed.