Contents Index Topic Contents | ||
Previous Topic: IPropertyBag2::CountProperties Next Topic: IPropertyBag2::LoadObject |
IPropertyBag2::GetPropertyInfo
HRESULT GetPropertyInfo( [in] ULONG iProperty, [in] ULONG cProperties, [out] PROPBAG2 * pPropBag, [out] ULONG * pcProperties );Retrieves information for properties in a property bag without actually retrieving the properties themselves.
- Returns one of the following values:
S_OK Information was successfully retrieved for all of the requested properties. E_INVALIDARG iProperty is greater than the number of properties in the property bag. E_OUTOFMEMORY A memory allocation error occurred.
- iProperty
- [in] Zero-based index of the first property that information is being requested for. This argument must be less than the number of properties retrieved by IPropertyBag2::CountProperties.
- cProperties
- [in] Number of properties to retrieve information for. This argument specifies the number of array elements in pPropBag.
- pPropBag
- [out] Address of an array of PROPBAG2 structures that receive the information for the properties. There must be at least cProperties elements in this array. This argument cannot be NULL.
- pcProperties
- [out] Address of a ULONG that receives the number of properties that information was retrieved for. This argument cannot be NULL.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.