Outlook::_MailItem and put_DeferredDeliveryTime

S

Sharanga Dayananda

Hi

An Outlook::_MailItem object in the Outlook object model supports a method
called put_DeferredDeliveryTime()

To set the value for this structure in C++ the put method requires a DATE
object. I don't seem to be able to figure out what this structure is.
<wtypes.h> seems to define this as a double.

I expected the actual value in the MAPI directory structure to be a
PT_SYSTIME.

How can I set this value? If it is a double, how do I calculate what value
to set for a Gregorian date?

Cheers
Sharanga
 
D

Dmitry Streblechenko

In COM you can only use the standard DateTime value, which is indeed double
under the hood - the integer part is the number of days since Jan 1, 1900
and the fractional part is the time of the day.
There are numerous functions that convert COM date/time to just about
anything else (FILETIME, etc).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
S

Sharanga Dayananda

Cheers Dmitry.

Dmitry Streblechenko said:
In COM you can only use the standard DateTime value, which is indeed
double under the hood - the integer part is the number of days since Jan
1, 1900 and the fractional part is the time of the day.
There are numerous functions that convert COM date/time to just about
anything else (FILETIME, etc).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top