HrGetPropTagName

The HrGetPropTagName function obtains the property tag name string of a property tag value.

Quick Info

Header file: PROPTAG.H
Library: PROPTAG.LIB

HRESULT HrGetPropTagName(
  ULONG ulPropTag,           
  LPSTR FAR * lppszPropName  
);
 

Parameters

ulPropTag
Input parameter. Property tag value.
lppszPropName
Output parameter. Points to the address of the returned property-tag name string upon success. If the value is not found in the property-tag string table, a string of one of the following formats is returned:
PT_STRING8
"[S " <HexNumber> "]"
PT_LONG
"[N " <HexNumber> "]"
All others
"[" <HexNumber> "]"

Return Values

See Return Values.

Remarks

Use the MAPIFreeBuffer function to free lppszPropName. For information on the MAPIFreeBuffer function, see the MAPI Programmer's Reference.

See Also

HrGetPropTagValue