IMAPIFormMgr::CalcFormPropSet

The IMAPIFormMgr::CalcFormPropSet method returns an array of the properties used by a group of forms.

Quick Info

See IMAPIFormMgr : IUnknown.

HRESULT CalcFormPropSet (
  LPSMAPIFORMINFOARRAY pfrminfoarray,   
  ULONG ulFlags,                       
  LPMAPIFORMPROPARRAY FAR * ppResults  
);
 

Parameters

pfrminfoarray
[in] Pointer to an array of form information objects identifying the forms for which to return properties.
ulFlags
[in] Bitmask of flags that controls how the property array in the ppResults parameter is returned. The following flags can be set:
FORMPROPSET_INTERSECTION
The returned array contains the intersection of the form's properties.
FORMPROPSET_UNION
The returned array contains the union of the form's properties.
MAPI_UNICODE
The strings returned in the array are in Unicode format. If the MAPI_UNICODE flag is not set, the strings are in ANSI format.
ppResults
[out] Pointer to a pointer to the returned SMAPIFormPropArray structure which contains the properties used by the forms.

Return Values

S_OK
The call succeeded and has returned the expected value or values.
MAPI_E_BAD_CHARWIDTH
Either the MAPI_UNICODE flag was set and the implementation does not support Unicode, or MAPI_UNICODE was not set and the implementation only supports Unicode.

Remarks

Form viewers call the IMAPIFormContainer::CalcFormPropSet method to obtain an array of the properties used by a group of forms. CalcFormPropSet either takes an intersection or a union of these forms' property sets, depending on the flag set in the ulFlags parameter, and it returns an SMAPIFormPropArray structure containing the resulting group of properties.

Notes to Implementers

If a form viewer passes the MAPI_UNICODE flag in the ulFlags parameter, all strings should be returned as Unicode strings. Form library providers that do not support Unicode strings should return MAPI_E_BAD_CHARWIDTH if MAPI_UNICODE is passed.

See Also

SMAPIFormPropArray