IStorage::SetStateBits  QQLSW9

Stores up to 32 bits of state information in this storage object.

HRESULT SetStateBits(

    DWORD grfStateBits,

//Specifies new values of bits

    DWORD grfMask

//Specifies mask that indicates which bits are significant

   );

 

 

Parameters

grfStateBits

[in] Specifies the new values of the bits to set. No legal values are defined for these bits; they are all reserved for future use and must not be used by applications.

grfMask

[in] A binary mask indicating which bits in grfStateBits are significant in this call.

Return Values

S_OK

The state information was successfully set.

E_PENDING

Asynchronous Storage only: Part or all of the storage s data is currently unavailable. For more information see IFillLockBytes194LHM2 and Asynchronous Storage27PL.UQ.

STG_E_ACCESSDENIED

The caller does not have sufficient permissions for changing this storage object.

STG_E_INVALIDFLAG

The value for the grfStateBits or grfMask parameters are not valid.

STG_E_INVALIDPARAMETER

One of the parameters was invalid.

Remarks

This interface is reserved for future use. The values for the state bits are not currently defined.

See Also

IStorage - Compound File Implementation14H.BPD, IStorage::StatXY11ZW