Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IStorage::SetStateBits method

The SetStateBits method stores up to 32 bits of state information in this storage object. This method is reserved for future use.

Syntax


HRESULT SetStateBits(
  [in] DWORD grfStateBits,
  [in] DWORD grfMask
);

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 value

This method can return one of these 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 IFillLockBytes and Asynchronous Storage.

STG_E_ACCESSDENIED

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

STG_E_INVALIDFLAG

The value for the grfStateBits or grfMask parameter is not valid.

STG_E_INVALIDPARAMETER

One of the parameters was not valid.

Remarks

The values for the state bits are not currently defined.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Header

Objidl.h

IDL

Objidl.idl

Library

Uuid.lib

DLL

Ole32.dll

IID

IID_IStorage is defined as 0000000B-0000-0000-C000-000000000046

See also

IStorage - Compound File Implementation
IStorage::Stat

 

 

Show:
© 2017 Microsoft