Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

HrEntryIDFromSz

Recreates an entry identifier from its ASCII encoding.

Header file:

Mapiutil.h

Implemented by:

MAPI

Called by:

Client applications

HRESULT HrEntryIDFromSz(
  LPSTR sz,
  ULONG FAR * pcb,
  LPENTRYID FAR * ppentry
);

Parameters

sz

[in] Pointer to the ASCII string from which to create an entry identifier.

pcb

[out] Pointer to the size, in bytes, of the entry identifier pointed to by the ppentry parameter.

ppentry

[out] Pointer to a pointer to the returned ENTRYID structure that contains the new entry identifier.

S_OK

The recreation was successful.

MAPI_E_INVALID_ENTRYID

The entry ID was invalid.

The HrEntryIDFromSz and HrSzFromEntryID functions provide conversion between the string and binary formats of entry identifiers.

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.