HrDecomposeEID 

The HrDecomposeEID function takes apart the compound entry identifier of an object, usually a message in a message store, into the entry identifier of that object within the store and that store s entry identifier.

 

Note  This function may not be supported in future versions of MAPI.

 

Quick Info

Header file:

MAPIUTIL.H

Implemented by:

MAPI

Called by:

Client applications

 

HrDecomposeEID(

    LPMAPISESSION psession,

 

    ULONG cbEID,

 

    LPENTRYID pEID,

 

    ULONG FAR * pcbStoreEID,

 

    LPENTRYID FAR * ppStoreEID ,

 

    ULONG FAR * pcbMsgEID,

 

    LPENTRYID FAR * ppMsgEID

 

   );

 

 

Parameters

psession

[in] Pointer to the session in use by the client application.

cbEID

[in] Size, in bytes, of the compound entry identifier to be taken apart.

pEID

[in] Pointer to the compound entry identifier to be taken apart.

pcbStoreEID

[out] Pointer to the returned size, in bytes, of the entry identifier of the message store containing the object. If the pEID parameter points to a noncompound entry identifier, then the pcbStoreEID parameter points to zero.

ppStoreEID

[out] Pointer to the returned entry identifier of the message store containing the object. If the pEID parameter points to a noncompound entry identifier, NULL is returned in the ppStoreEID parameter.

pcbMsgEID

[out] Pointer to the returned size, in bytes, of the entry identifier of the object. If the pEID parameter points to a noncompound entry identifier, then the pcbMsgEID parameter is equal to the value of the cbEID parameter.

ppMsgEID

[out] Pointer to the returned entry identifier of the object. If pEID points to a noncompound entry identifier, memory is copied so that the pointer in pEID is equal to the pointer to the pointer in the ppMsgEID parameter.

 

Remarks

If the identifier specified by the pEID parameter is compound, it is split into the entry identifier of the object within its message store and that store s entry identifier. Noncompound entry identifier strings are simply copied. The compound identifier taken apart is usually one created by the HrComposeEIDZPHR1 function.

The memory that holds the pEID parameter is released upon successful completion of this function. The calling implementation is responsible for freeing memory for the output parameters.

See Also

HrDecomposeMsgIDT04XMY