Microsoft SDK for Java

SetStateBits

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

Syntax

public void SetStateBits(int grfStateBits, int grfMask);

Return Value

S_OK -- The state information was successfully set.

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

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.

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.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.