Platform SDK: MAPI

SMAPIFormProp

The SMAPIFormProp structure describes a named property used with a form.

Quick Info

Header file: MAPIFORM.H

typedef struct _SMAPIFormProp 
{ 
     ULONG                    ulFlags;      
     ULONG                    nPropType;      
     MAPINAMEID               nmid;           
     LPTSTR                   pszDisplayName; 
     FORMPROPSPECIALTYPE      nSpecialType;  
     union 
     { 
          struct 
          { 
          MAPINAMEID                 nmidIdx; 
          ULONG                      cfpevAvailable;      
          LPMAPIFORMPROPENUMVAL      pfpevAvailable; 
          } s1;      
     } u; 
} SMAPIFormProp, FAR * LPMAPIFORMPROP; 
 

Members

ulFlags
Flags used to distinguish the format of the strings in the SMAPIFormProp structure. The following flag can be set:
MAPI_UNICODE
The strings returned are in Unicode format. If MAPI_UNICODE is not set, the strings are in ANSI format.
nPropType
Type of the named property, with the most significant word set to zero.
nmid
Name for the named property, which includes a GUID structure identifying the property set and either a numeric or string value representing an interface identifier and form name.
pszDisplayName
Pointer to the display name of the named property.
nSpecialType
Value describing the type of data included in the u member. Possible values are:
FPST_VANILLA
The u member does not contain an enumeration.
FPST_ENUM_PROP
The u member contains a structure that describes an enumeration.
u
Union describing the association between the name and number of the named property. With some properties, the u member is empty. With other properties, it is represented in a structure made up of the following members:
nmidIdx
The MAPINAMEID structure containing the property set and identifier for the named property.
cfpevAvailable
Count of SMAPIFormPropEnumVal structures in the array pointed to by the pfpevAvailable member.
pfpevAvailable
Pointer to an array of SMAPIFormPropEnumVal structures, each of which holds a value for the named property.

Remarks

The SMAPIFormProp structure contains information about a form property used as part of the definitions of the IMAPIFormInfo interface; nSpecialType contains a tag that applies to the u union that is part of SMAPIFormProp.

See Also

Form Structures, MAPINAMEID, SMAPIFormPropEnumVal