Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This method stores up to 32 bits of state information in this storage object.

Syntax

HRESULT SetStateBits( 
  DWORD 
grfStateBits, 
  DWORD 
grfMask 
);

Parameters

grfStateBits

[in] 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] Binary mask that indicates which bits in grfStateBitsare significant in this call.

Return Value

The following table shows the return values for this method.

Value Description

S_OK

The state informationwas successfully set.

E_PENDING

Asynchronous Storage only: Part or all of the storage's data is currently unavailable.

For more information see the IFillLockBytesinterface and Asynchronous Storage.

STG_E_ACCESSDENIED

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

STG_E_INVALIDFLAG

The value for the grfStateBitsor grfMaskparameters 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.

To determine whether the platform supports this interface, see Determining Supported COM APIs.

Requirements

Header objidl.h, objidl.idl
Library ole32.lib, uuid.lib
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later