home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 May / PCFMay2001.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / mapioid.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  2.8 KB  |  109 lines

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