The IPropData::HrSetPropAccess method sets the access level or status for one or more of the object's properties.
HRESULT HrSetPropAccess(
LPSPropTagArray lpPropTagArray,
ULONG FAR * rgulAccess
);
For each property tag, one access level flag and one status flag can be set. Possible flags are:
Access level flag | Status flag |
---|---|
IPROP_READONLY, indicating that the property cannot be modified | IPROP_CLEAN, indicating that the property has not been modified. |
IPROP_READWRITE, indicating that the property can be modified. | IPROP_DIRTY, indicating that the property has been modified. |
The IPropData::HrSetPropAccess method changes the access level and status for the properties that are identified by the property tags in the SPropTagArray structure pointed to by lpPropTagArray. For each property, there is a corresponding entry in the rgulAccess array. The entry can be set to one flag that indicates the property's access level and another flag that indicates its status.
Use HrSetPropAccess for determining when a particular property value changes and to change the access level for one or more of an object's properties.