DirectX SDK

Direct3DDevice7.EndStateBlock

The Direct3DDevice7.EndStateBlock method signals Direct3D to stop recording a device state block and retrieve the block handle.

object.EndStateBlock( _ 
    blockHandle As Long)

Parameters

object
Object expression that resolves to a Direct3DDevice7 object.
blockHandle
Variable that will be filled with the handle to the completed device state block. This value is used with the Direct3DDevice7.ApplyStateBlock and Direct3DDevice7.DeleteStateBlock methods.

Error Codes

If the method fails, an error is raised and Err.Number may be set to DDERR_INVALIDPARAMS to indicate that the blockHandle parameter is invalid or that the Direct3DDevice7.BeginStateBlock method has not been called.

See Also

Direct3DDevice7.ApplyStateBlock, Direct3DDevice7.BeginStateBlock, Direct3DDevice7.CaptureStateBlock, Direct3DDevice7.CreateStateBlock, Direct3DDevice7.DeleteStateBlock, State Blocks