Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.


This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Encodes an entry identifier into an ASCII string.

Header file:


Implemented by:


Called by:

Client applications

  ULONG cb,
  LPENTRYID pentry,
  LPTSTR FAR * psz


[in] Size, in bytes, of the entry identifier pointed to by the pentry parameter.


[in] Pointer to an ENTRYID structure that contains the entry identifier to be encoded.


[out] Pointer to the returned ASCII string.

The HrEntryIDFromSz and HrSzFromEntryID functions provide conversion between the string and binary formats of entry identifiers. With MAPI, you should use structures with binary data.

The HrSzFromEntryID function allocates memory for the ASCII string using the MAPIAllocateBuffer function.

© 2015 Microsoft