| DirectX SDK | 
The Direct3DVertexBuffer7.Unlock method unlocks a previously locked vertex buffer.
object.Unlock()
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.
Direct3DVertexBuffer7.Lock, Accessing the Contents of a Vertex Buffer