Platform SDK: Exchange Server

HrCfgPackData

The HrCfgPackData function packs a configuration name and a set of MAPI properties into a binary buffer suitable to be saved in the directory information tree for the gateway or other object.

Quick Info

Header file: EDKCFG.H
Library: EDKCFG.LIB
Unicode: Yes

HRESULT HrCfgPackData(
  LPTSTR lpszConfigName, 
  ULONG cProps,          
  LPSPropValue lpProps,  
  ULONG * lpcbConfigData,  
  LPBYTE * lppbConfigData  
);
 

Parameters

lpszConfigName
Input parameter. Points to the name of the configuration (NULL is valid).
cProps
Input parameter. Specifies the number of MAPI properties that are packed.
lpProps
Input parameter. Points to a MAPI SPropValue structure containing the properties that are packed.
lpcbConfigData
Output parameter. Poiints to the size of the resulting binary buffer.
lppbConfigData
Output parameter. Points to a pointer to the resulting binary buffer.

Return Values

See Return Values.

Remarks

For information on the SPropValue structure, see the MAPI Programmer's Reference.

For more information on the HrCfgPackData function, see Using the Configuration Functions.

See Also

HrCfgUnpackData