Platform SDK: Exchange Server

HrMAPIGetPropToFile

The HrMAPIGetPropToFile function saves a property in a file.

Quick Info

Header file: EDKMAPI.H
Library: EDKMAPI.LIB

HRESULT HrMAPIGetPropToFile(
  LPMAPIPROP lpObj,     
  ULONG ulPropTag,      
  LPTSTR lpszFilename,  
  ULONG * lpcbProp      
);
 

Parameters

lpObj
Input parameter. Points to a MAPI IMAPIProp interface containing the object.
ulPropTag
Input parameter. Property tag.
lpszFilename
Input parameter. Points to destination file name.
lpcbProp
Output parameter. Points to the number of bytes in the property value. This parameter is only required for property types PT_BINARY and PT_STRING8. This parameter is ignored for other property types, so set it to NULL for other property types.

Return Values

See Return Values.

Remarks

For more information on this function, see the HrMAPIGetPropToFile function in IPROP.C under the EDKMAPI code sample in the Code Samples folder.

For information on the IMAPIProp interface, see the MAPI Programmer's Reference.