IDirect3DExecuteBuffer::Unlock

HRESULT Unlock();

Releases the direct pointer to the commands in the execute buffer. This must be done prior to calling the IDirect3DDevice::Execute method for the buffer.

·Returns D3D_OK if successful, or an error otherwise, which may be one of the following values:

D3DERR_EXECUTE_NOT_LOCKED

DDERR_INVALIDOBJECT