Re: PR_ENTRYID in ExMAPI

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Why you do not use LongTerm EntryID???
PR_ENTRYID is different always!!!

--
Iv Borissov
*everything that has a beginning has an end*



"semut" <ant_yio@xxxxxxxxxxx> wrote in message
news:Ome1TVGpFHA.1304@xxxxxxxxxxxxxxxxxxxxxxx
> thanks for the reply.
>
> Yup, I know I could create the UID myself but I would need to handle every
> item add event sink to ensure it will also remain as unique in all the
case
> like user -
>
> - duplicating the item (by simply copy and paste) that they previously
have
> created. I think Outlook will copy the named prop that I have created into
> the duplicate item too which break the uniqueness.
>
>
>
> "Volker Bartheld (SPAM only)" <dr_versaeg@xxxxxxxxxx> wrote in message
> news:3mjfkrF173spgU1@xxxxxxxxxxxxxxxxx
> > Hi Semut!
> >
> > On Thu, 18 Aug 2005 19:48:58 +0800, "semut" <ant_yio@xxxxxxxxxxx> wrote
> >>Is it possible to create a named prop or properties into the IMessage
> >>whereby Outlook will make sure it will be unique in the Outlook.
Something
> >>like PR_ENTRYID.
> >
> > Why don't you (the Win32 API) make sure yourself? Just create a (G/U)UID
> > with
> >
> > <cpp>
> > #include <windows.h>
> > #include <tchar.h>
> > #include <rpcdce.h>
> >
> > UUID Uuid;
> > RPC_STATUS stat;
> > TCHAR *pszUuid;
> > if(
> > SUCCEEDED(stat=UuidCreate(&Uuid)) &&
> > # ifdef UNICODE
> > SUCCEEDED(stat=UuidToString(&Uuid, (unsigned short**)&pszUuid))
> > # else
> > SUCCEEDED(stat=UuidToString(&Uuid, (unsigned char**)&pszUuid))
> > # endif
> > )
> > {
> > // write UUID in pszUuid into named MAPI property
> > }
> > # ifdef UNICODE
> > stat=RpcStringFree((unsigned short**)&pszUuid);
> > # else
> > stat=RpcStringFree((unsigned char**)&pszUuid);
> > # endif
> > </cpp>
> >
> > and fill the resulting string into a named PT_STRING8 (named) prop?
> >
> > If the (G/U)UID is unique throughout the system/machine, it should be
> > unique in the messagestore, IMHO.
> >
> > HTH,
> > Volker
> > __
> > Mail replies to/an V B A R T H E L D at G M X dot D E
>
>


.



Relevant Pages