Redemption - MapiTable : BusyStatus

G

Guest

Dmitry,

Can you pls assist - I am using Redemption to retrieve a mapi table but
getting stuck on the outlook appointment properties like BusyStatus etc. I
got the GUID for the property but unsure how to tailor these lines from your
documentation:

PT_STRING8 = &H1E
PR_FILE_UNDER =
sItem.GetIDsFromNames("{00062004-0000-0000-C000-000000000046}", &H8005) or
PT_STRING8

What is the second parameter in the GetIDsFromNames method and what does the
"or PT_STRING8" do?

Thanks, Tad

p.s. Seeing impressive performance gains with Redemption !
 
K

Ken Slovak - [MVP - Outlook]

I'm not Dmitry but...

The first argument is the GUID for a named property, the second is the
property tag and the value you OR with depends on the property type (i.e.
PT_STRING8, PT_BOOLEAN, PT_LONG, etc.). You need all 3 to create a valid
property tag.

BusyStatus would use the GUID "{00062002-0000-0000-C000-000000000046}". It's
a PT_LONG, so that would be &H3. The tag for BusyStatus would be &H8205.

So, your code line would be:

Const PT_LONG = &H3
Const BusyStatusGUID = "{00062002-0000-0000-C000-000000000046}"
Const BusyStatusTag = &H8205
lngPropTag = sItem.GetIDsFromNames(BusyStatusGUID , BusyStatusTag) OR
PT_LONG

lngBusyStatus = sItem.Fields(lngPropTag)

The easiest way to find all those values is with a MAPI viewer such as
OutlookSpy or MFCMAPI.
 
G

Guest

Ken,

Thanks, I didn't mean to show favouritism!

My GUID for BusyStatus is {00063033-0000-0000-C000-000000000046} with OL2003
std. Is that just a version difference?

Tad
 
D

Dmitry Streblechenko

{00063033-0000-0000-C000-000000000046} is IID_AppointmentItem.
It has absolutely nothing to do with the named property GUID. Look at an
activity with OutlookSpy (click IMessage), find the property, select it,
look in the "Named Property" box on the right hand side of the window -
that's the GUID and id (0x8205) that you need.
Also see http://www.dimastr.com/redemption/utils.htm#xmapi

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

Guest

Dmitry - thanks for getting me back on track

Dmitry Streblechenko said:
{00063033-0000-0000-C000-000000000046} is IID_AppointmentItem.
It has absolutely nothing to do with the named property GUID. Look at an
activity with OutlookSpy (click IMessage), find the property, select it,
look in the "Named Property" box on the right hand side of the window -
that's the GUID and id (0x8205) that you need.
Also see http://www.dimastr.com/redemption/utils.htm#xmapi

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