Partager via


SetStatusFlags method

Sets the status flags of the DXSurface object.

Syntax

HRESULT retVal = object.SetStatusFlags(dwStatusFlags);

Parameters

  • dwStatusFlags [in]
    Type: DWORD

    Value to set for the surface status flags.

Remarks

The value of the dwStatusFlags parameter sets flags that are defined in the DXSURFSTATUS enumeration. Specify a value of DXSURF_TRANSIENT if the data in the surface changes often. If this flag is set, the code does not generate a sample runmap when the surface is locked. Use of this flag decreases the time required to lock a surface, at the expense of code optimization that uses the sample runmap.

To prevent write access to a surface, set the DXSURF_READONLY flag.

See also

Reference

IDXSurface::GetStatusFlags

DXSURFSTATUS