Platform SDK: Exchange Server

HrMAPISetPropFromFile

The HrMAPISetPropFromFile function sets a property from a file where the property was saved by the HrMAPIGetPropToFile function.

Quick Info

Header file: EDKMAPI.H
Library: EDKMAPI.LIB

HRESULT HrMAPISetPropFromFile(
  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 source 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 HrMAPISetPropFromFile 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.

See Also

HrMAPIGetPropToFile