HrCfgUnpackData

The HrCfgUnpackData function unpacks a packed binary buffer to yield a configuration name, a number of properties, and an array of MAPI properties.

Quick Info

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

HRESULT HrCfgUnpackData(
  ULONG cbConfigData,    
  LPBYTE lpbConfigData,  
  LPTSTR * lppszConfigName,  
  ULONG * lpcProps,      
  LPSPropValue * lppProps  
);
 

Parameters

cbConfigData
Input parameter. Specifies the size of the unpacked binary structure.
lpbConfigData
Input parameter. Points to an unpacked binary structure.
lppszConfigName
Output parameter. Points to a pointer to the name of the configuration (NULL is valid).
lpcProps
Output parameter. Points to the number of MAPI properties that are unpacked.
lppProps
Output parameter. Points to a pointer to the MAPI SPropValue structure containing the properties that are unpacked.

Return Values

See Return Values.

Remarks

The HrEDKCfgUnpackData function creates a buffer in memory, then unpacks and copies the extension data from the directory object into the buffer.

If lppszConfigName returns NULL, there is no configuration name at the start of the buffer.

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

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

See Also

HrCfgPackData, HrOpenSiteContainer