MAPIOID.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /*
  2. * M A P I O I D . H
  3. *
  4. * MAPI OID definition header file
  5. *
  6. * Copyright 1986-1999 Microsoft Corporation. All Rights Reserved.
  7. */
  8. #ifndef _MAPIOID_
  9. #define _MAPIOID_
  10. /*
  11. * MAPI 1.0 Object Identifiers (OID's)
  12. *
  13. * All MAPI 1.0 OIDs are prefixed by the segment
  14. *
  15. * {iso(1) ansi(2) usa(840) microsoft(113556) mapi(3)}
  16. *
  17. * All MAPI 1.0 tags are also include the addistion segment
  18. *
  19. * {tags(10)}
  20. *
  21. * All MAPI 1.0 encodings are also include the addistion segment
  22. *
  23. * {encodeings(11)}
  24. *
  25. * The set of defined tags are as follows
  26. *
  27. * {{mapiprefix} {tags} {tnef(1)}} MAPI 1.0 TNEF encapsulation tag
  28. *
  29. * {{mapiprefix} {tags} {ole(3)}} MAPI 1.0 OLE prefix
  30. * {{mapiprefix} {tags} {ole(3)} {v1(1)}} MAPI 1.0 OLE 1.0 prefix
  31. * {{mapiprefix} {tags} {ole(3)} {v1(1)} {storage(1)}} MAPI 1.0 OLE 1.0 OLESTREAM
  32. * {{mapiprefix} {tags} {ole(3)} {v2(2)}} MAPI 1.0 OLE 2.0 prefix
  33. * {{mapiprefix} {tags} {ole(3)} {v2(2)} {storage(1)}} MAPI 1.0 OLE 2.0 IStorage
  34. *
  35. * The set of defined encodings are as follows
  36. *
  37. * {{mapiprefix} {encodings} {MacBinary(1)}} MAPI 1.0 MacBinary
  38. */
  39. #define OID_TAG 0x0A
  40. #define OID_ENCODING 0x0B
  41. #define DEFINE_OID_1(name, b0, b1) \
  42. EXTERN_C const BYTE FAR * name
  43. #define DEFINE_OID_2(name, b0, b1, b2) \
  44. EXTERN_C const BYTE FAR * name
  45. #define DEFINE_OID_3(name, b0, b1, b2, b3) \
  46. EXTERN_C const BYTE FAR * name
  47. #define DEFINE_OID_4(name, b0, b1, b2, b3, b4) \
  48. EXTERN_C const BYTE FAR * name
  49. #define CB_OID_1 9
  50. #define CB_OID_2 10
  51. #define CB_OID_3 11
  52. #define CB_OID_4 12
  53. #ifdef INITOID
  54. #include <initoid.h>
  55. #endif
  56. #ifdef USES_OID_TNEF
  57. DEFINE_OID_1(OID_TNEF, OID_TAG, 0x01);
  58. #define CB_OID_TNEF CB_OID_1
  59. #endif
  60. #ifdef USES_OID_OLE
  61. DEFINE_OID_1(OID_OLE, OID_TAG, 0x03);
  62. #define CB_OID_OLE CB_OID_1
  63. #endif
  64. #ifdef USES_OID_OLE1
  65. DEFINE_OID_2(OID_OLE1, OID_TAG, 0x03, 0x01);
  66. #define CB_OID_OLE1 CB_OID_2
  67. #endif
  68. #ifdef USES_OID_OLE1_STORAGE
  69. DEFINE_OID_3(OID_OLE1_STORAGE, OID_TAG, 0x03, 0x01, 0x01);
  70. #define CB_OID_OLE1_STORAGE CB_OID_3
  71. #endif
  72. #ifdef USES_OID_OLE2
  73. DEFINE_OID_2(OID_OLE2, OID_TAG, 0x03, 0x02);
  74. #define CB_OID_OLE2 CB_OID_2
  75. #endif
  76. #ifdef USES_OID_OLE2_STORAGE
  77. DEFINE_OID_3(OID_OLE2_STORAGE, OID_TAG, 0x03, 0x02, 0x01);
  78. #define CB_OID_OLE2_STORAGE CB_OID_3
  79. #endif
  80. #ifdef USES_OID_MAC_BINARY
  81. DEFINE_OID_1(OID_MAC_BINARY, OID_ENCODING, 0x01);
  82. #define CB_OID_MAC_BINARY CB_OID_1
  83. #endif
  84. #ifdef USES_OID_MIMETAG
  85. DEFINE_OID_1(OID_MIMETAG, OID_TAG, 0x04);
  86. #define CB_OID_MIMETAG CB_OID_1
  87. #endif
  88. #endif