DirectX SDK |
The DirectDrawSurface7.Unlock method notifies DirectDraw that the direct surface manipulations are complete.
object.Unlock(r As RECT)
If the method fails, it raises an error, and Err.Number can be set to one of the following values:
DDERR_GENERIC |
DDERR_INVALIDOBJECT |
DDERR_INVALIDPARAMS |
DDERR_INVALIDRECT |
DDERR_NOTLOCKED |
DDERR_SURFACELOST |
Because it is possible to call DirectDrawSurface7.Lock multiple times for the same surface with different destination rectangles, the r parameter links the calls to the DirectDrawSurface7.Lock and DirectDrawSurface7.Unlock methods.