2013-02-20 [colin] 3.9.0cvs95
[claws.git] / src / plugins / tnef_parse / mapi.h
1 #define MV_FLAG         0x1000          /* Multi-value flag */
2
3 #define PT_UNSPECIFIED  ((ULONG)  0)    /* (Reserved for interface use) type doesn't matter to caller */
4 #define PT_NULL         ((ULONG)  1)    /* NULL property value */
5 #define PT_I2           ((ULONG)  2)    /* Signed 16-bit value */
6 #define PT_LONG         ((ULONG)  3)    /* Signed 32-bit value */
7 #define PT_R4           ((ULONG)  4)    /* 4-byte floating point */
8 #define PT_DOUBLE       ((ULONG)  5)    /* Floating point double */
9 #define PT_CURRENCY     ((ULONG)  6)    /* Signed 64-bit int (decimal w/    4 digits right of decimal pt) */
10 #define PT_APPTIME      ((ULONG)  7)    /* Application time */
11 #define PT_ERROR        ((ULONG) 10)    /* 32-bit error value */
12 #define PT_BOOLEAN      ((ULONG) 11)    /* 16-bit boolean (non-zero true) */
13 #define PT_OBJECT       ((ULONG) 13)    /* Embedded object in a property */
14 #define PT_I8           ((ULONG) 20)    /* 8-byte signed integer */
15 #define PT_STRING8      ((ULONG) 30)    /* Null terminated 8-bit character string */
16 #define PT_UNICODE      ((ULONG) 31)    /* Null terminated Unicode string */
17 #define PT_SYSTIME      ((ULONG) 64)    /* FILETIME 64-bit int w/ number of 100ns periods since Jan 1,1601 */
18 #define PT_CLSID        ((ULONG) 72)    /* OLE GUID */
19 #define PT_BINARY       ((ULONG) 258)   /* Uninterpreted (counted byte array) */
20
21 #define PROP_TYPE_MASK          ((ULONG)0x0000FFFF) /* Mask for Property type */
22 #define PROP_TYPE(ulPropTag)    (((ULONG)(ulPropTag))&PROP_TYPE_MASK)
23 #define PROP_ID(ulPropTag)      (((ULONG)(ulPropTag))>>16)
24 #define PROP_TAG(ulPropType,ulPropID)   ((((ULONG)(ulPropID))<<16)|((ULONG)(ulPropType)))
25 #define PROP_ID_NULL            0
26 #define PROP_ID_INVALID         0xFFFF
27 #define PR_NULL                 PROP_TAG( PT_NULL, PROP_ID_NULL)
28
29 #define MAPI_UNDEFINED ((variableLength*)-1)