DirectX SDK

Direct3DVertexBuffer7.Unlock

The Direct3DVertexBuffer7.Unlock method unlocks a previously locked vertex buffer.

object.Unlock()

Parameters

object
Object expression that resolves to a Direct3DVertexBuffer7 object.

Error Codes

If the method fails, an error is raised and Err.Number may be set to one of the following values:

DDERR_GENERIC
DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS
DDERR_SURFACEBUSY
DDERR_SURFACELOST

For information on trapping errors, see the Visual Basic Error Trapping topic.

See Also

Direct3DVertexBuffer7.Lock, Accessing the Contents of a Vertex Buffer