Re: PR_CREATION_TIME & PR_LAST_MODIFICATION_TIME always returned as "now"
What do you see in OutlookSpy when yo uclick Misc | OpenIMsgOnIStg?
AFAIK these properties are calculated form the MSG file properries. Whar are
the file dates?
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Kevin Alons" wrote in message news:...
> Message-ID:
> X-Mailer: http://www.umailcampaign.com, ip log:66.172.232.233
> Newsgroups: microsoft.public.platformsdk.mapi
> NNTP-Posting-Host: 22.bb.5446.static.theplanet.com 70.84.187.34
> Path: TK2MSFTNGP01.phx.gbl!TK2MSFTNGP04.phx.gbl!newspe.com
> Lines: 1
> Xref: TK2MSFTNGP01.phx.gbl microsoft.public.platformsdk.mapi:9109
>
> Here is the relevant code (pulled from several places in my C++ wrapper of
> MAPI):
>
> CComPtr<IStorage> m_stg;
> CComPtr<IMessage> m_msg;
>
> m_stg = stg; /* where stg is an IStorage* */
>
> HR_(::OpenIMsgOnIStg(NULL, &MAPIAllocateBuffer, &MAPIAllocateMore,
> &MAPIFreeBuffer, alloc, NULL, m_stg, NULL, 0, 0, (LPMESSAGE*)&m_msg));
>
> CComPtr<IMAPIProp> m_mapiProp;
> m_mapiProp = iMapiProp;
>
> CLPSPropValue val;
>
> // ULONG propTag; // passed in
>
> if (SUCCEEDED(HrGetOneProp(m_mapiProp, propTag, &val)))
> {
> switch (PTAG_TYPE(val->ulPropTag))
> {
> case PT_APPTIME:
> return val->Value.at;
> case PT_SYSTIME:
> return FileTimeToDate(val->Value.ft);
> case PT_DOUBLE:
> return val->Value.dbl;
> default:
> return GetMAPIIntProperty(propTag);
> }
> }
>
> url:http://ureader.com/msg/1651587.aspx
date: Mon, 25 Aug 2008 12:53:53 -0700
author: Dmitry Streblechenko