home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / inole2 / inc / bookguid.h < prev    next >
C/C++ Source or Header  |  1995-05-03  |  12KB  |  348 lines

  1. /*
  2.  * BOOKGUID.H
  3.  *
  4.  * CLSIDs and IIDs defined for Inside OLE.  This file centralizes
  5.  * them all so we can keep track of which ones are used.  The IDs
  6.  * in this file are for exclusive use of the author and should not
  7.  * be used under any circumstances in any other projects.
  8.  *
  9.  * Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  10.  *
  11.  * Kraig Brockschmidt, Microsoft
  12.  * Internet  :  kraigb@microsoft.com
  13.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  14.  */
  15.  
  16.  
  17. #ifndef _BOOKGUID_H_
  18. #define _BOOKGUID_H_
  19.  
  20. #ifdef INITGUIDS
  21. #include <initguid.h>
  22. #endif //INITGUIDS
  23.  
  24.  
  25.  
  26. /*
  27.  * GUIDs
  28.  *
  29.  * For this book the author has been allocated the GUIDs in the range:
  30.  *     00021100-0000-0000-C000-000000000046
  31.  *     000211FF-0000-0000-C000-000000000046
  32.  *
  33.  * Gaps in the sequences are GUIDS used by the author for purposes other
  34.  * than this book, e.g. magazine articles.
  35.  *
  36.  * GUIDs between 00021100 and 0002113F were used for the first edition
  37.  * of Inside OLE 2 and interim samples.  Those starting with 00021140
  38.  * are for the second edition of Inside OLE.
  39.  *
  40.  * GUIDs are only included if a "CHAPTERx" synmbol is defined.  This
  41.  * keeps unused GUIDs out of the compilation.
  42.  */
  43.  
  44.  
  45. //Chapter 2
  46. #ifdef CHAPTER2
  47. DEFINE_GUID(IID_IEnumRECT,  0x00021140, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  48. DEFINE_GUID(IID_ISampleOne, 0x00021141, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  49. DEFINE_GUID(IID_ISampleTwo, 0x00021142, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  50. DEFINE_GUID(IID_IAnimal,    0x00021143, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  51. DEFINE_GUID(IID_IKoala,     0x00021144, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  52. #endif
  53.  
  54.  
  55. //Chapter 4
  56. #ifdef CHAPTER4
  57. DEFINE_GUID(IID_IDuckEvents, 0x00021145, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  58. #endif
  59.  
  60.  
  61. //Chapter 5
  62. #ifdef CHAPTER5
  63.  
  64. //Koala Objects
  65. DEFINE_GUID(CLSID_Koala, 0x00021146, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  66.  
  67. //Polyline
  68. DEFINE_GUID(CLSID_Polyline5,          0x00021147, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  69. DEFINE_GUID(IID_IPolyline5,           0x00021148, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  70. DEFINE_GUID(IID_IPolylineAdviseSink5, 0x00021149, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  71. #endif
  72.  
  73.  
  74. //Chapter 6
  75. #ifdef CHAPTER6
  76.  
  77. //Koala Object:  Repeat of the Chapter 5 definition
  78. DEFINE_GUID(CLSID_Koala,      0x00021146, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  79.  
  80. //Custom interfaces and proxy/stub CLSID
  81. DEFINE_GUID(IID_IAnimal,      0x0002114A, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  82. DEFINE_GUID(CLSID_PSIAnimal,  0x0002114A, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  83.  
  84. DEFINE_GUID(IID_IKoala,       0x0002114B, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  85. DEFINE_GUID(CLSID_PSIKoala,   0x0002114B, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  86.  
  87. //Custom marshaling proxy
  88. DEFINE_GUID(CLSID_KoalaProxy, 0x0002114C, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  89. #endif
  90.  
  91.  
  92. //Chapter 7
  93. #ifdef CHAPTER7
  94. //Patron's App ID
  95. DEFINE_GUID(CLSID_PatronPages, 0x0002114D, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  96.  
  97. #ifndef GUIDS_FROM_TYPELIB
  98. //Cosmo Figures/Files
  99. DEFINE_GUID(CLSID_CosmoFigure, 0x0002114E, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  100. #endif  //GUIDS_FROM_TYPELIB
  101.  
  102. #endif
  103.  
  104.  
  105. //Chapter 8
  106. #ifdef CHAPTER8
  107.  
  108. //Polyline
  109. DEFINE_GUID(CLSID_Polyline8,          0x0002114F, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  110. DEFINE_GUID(IID_IPolyline8,           0x00021150, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  111. DEFINE_GUID(IID_IPolylineAdviseSink8, 0x00021151, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  112.  
  113. #endif
  114.  
  115.  
  116.  
  117. //Chapter 9
  118. #ifdef CHAPTER9
  119. DEFINE_GUID(IID_IDescription,  0x00021152, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  120. DEFINE_GUID(CLSID_LinkedFile,  0x00021153, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  121. #endif
  122.  
  123.  
  124. //Chapter 10
  125. #ifdef CHAPTER10
  126.  
  127. //DataObject variations for the data set.  Same server supplies them all.
  128. DEFINE_GUID(CLSID_DataObjectSmall,  0x00021154, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  129. DEFINE_GUID(CLSID_DataObjectMedium, 0x00021155, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  130. DEFINE_GUID(CLSID_DataObjectLarge,  0x00021156, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  131.  
  132. //Polyine
  133. DEFINE_GUID(CLSID_Polyline10,          0x00021157, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  134. DEFINE_GUID(IID_IPolyline10,           0x00021158, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  135. DEFINE_GUID(IID_IPolylineAdviseSink10, 0x00021159, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  136.  
  137. #endif
  138.  
  139.  
  140. //Chapter 11
  141. #ifdef CHAPTER11
  142. #endif
  143.  
  144. //Needed for many subsequent chapters
  145. #ifndef WIN32
  146. //OLE32 has these defined, OLE16 doesn't
  147. #undef CLSID_Picture_Metafile
  148. #undef CLSID_Picture_Dib
  149. DEFINE_OLEGUID(CLSID_Picture_Metafile,        0x00000315, 0, 0);
  150. DEFINE_OLEGUID(CLSID_Picture_Dib,             0x00000316, 0, 0);
  151. #endif
  152.  
  153.  
  154. //Chapter 12
  155. #ifdef CHAPTER12
  156.  
  157. DEFINE_GUID(CLSID_PatronPages, 0x0002114D, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  158. DEFINE_GUID(CLSID_CosmoFigure, 0x0002114E, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  159.  
  160. DEFINE_GUID(CLSID_Polyline10,          0x00021157, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  161. DEFINE_GUID(IID_IPolyline10,           0x00021158, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  162. DEFINE_GUID(IID_IPolylineAdviseSink10, 0x00021159, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  163.  
  164. //Data Transfer Component
  165. DEFINE_GUID(CLSID_DataTransferObject, 0x0002115A, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  166.  
  167. #endif
  168.  
  169.  
  170. //Chapter 13
  171. #ifdef CHAPTER13
  172.  
  173. DEFINE_GUID(CLSID_PatronPages, 0x0002114D, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  174. DEFINE_GUID(CLSID_CosmoFigure, 0x0002114E, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  175.  
  176. DEFINE_GUID(CLSID_Polyline10,          0x00021157, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  177. DEFINE_GUID(IID_IPolyline10,           0x00021158, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  178. DEFINE_GUID(IID_IPolylineAdviseSink10, 0x00021159, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  179.  
  180. DEFINE_GUID(CLSID_DataTransferObject, 0x0002115A, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  181.  
  182. #endif
  183.  
  184.  
  185. //Chapter 14
  186. #ifdef CHAPTER14
  187.  
  188. //For Cosmo
  189. DEFINE_GUID(CLSID_CosmoFigure,        0x0002114E, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  190. DEFINE_GUID(CLSID_DataTransferObject, 0x0002115A, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  191.  
  192. //Beeper samples
  193. #ifndef GUIDS_FROM_TYPELIB
  194. DEFINE_GUID(CLSID_Beeper,            0x0002115B, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  195. DEFINE_GUID(IID_IBeeper,             0x0002115C, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  196. DEFINE_GUID(DIID_DIBeeper,           0x0002115D, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  197. DEFINE_GUID(LIBID_BeeperTypeLibrary, 0x0002115E, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  198. #endif
  199.  
  200.  
  201. //Cosmo Chapter 14:  Automation Interfaces
  202. #ifndef GUIDS_FROM_TYPELIB
  203. DEFINE_GUID(IID_ICosmoApplication,    0x0002115F, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  204. DEFINE_GUID(IID_ICosmoFigures,        0x00021160, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  205. DEFINE_GUID(IID_ICosmoFigure,         0x00021161, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  206. DEFINE_GUID(DIID_DICosmoApplication,  0x00021162, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  207. DEFINE_GUID(DIID_DICosmoFigures,      0x00021163, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  208. DEFINE_GUID(DIID_DICosmoFigure,       0x00021164, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  209. DEFINE_GUID(LIBID_Cosmo2TypeLibrary,  0x00021165, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  210. DEFINE_GUID(CLSID_Cosmo2Application,  0x00021166, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  211. #endif
  212.  
  213. #endif
  214.  
  215.  
  216.  
  217. //Chapter 15
  218. #ifdef CHAPTER15
  219.  
  220. //SphereSquare Automation Object
  221. #ifndef GUIDS_FROM_TYPELIB
  222. DEFINE_GUID(CLSID_SphereSquare,   0x00021167, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  223. DEFINE_GUID(IID_ISphereSquare,    0x00021168, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  224. DEFINE_GUID(TLBID_SphereSquare,   0x00021169, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  225. DEFINE_GUID(DIID_DISphereSquare,  0x0002116A, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  226. #endif
  227.  
  228. #endif
  229.  
  230.  
  231. //Chapter 16
  232. #ifdef CHAPTER16
  233.  
  234. //Repeats from Chapter 14
  235. #ifndef GUIDS_FROM_TYPELIB
  236. DEFINE_GUID(CLSID_Beeper,            0x0002115B, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  237. DEFINE_GUID(IID_IBeeper,             0x0002115C, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  238. DEFINE_GUID(DIID_DIBeeper,           0x0002115D, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  239. DEFINE_GUID(LIBID_BeeperTypeLibrary, 0x0002115E, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  240. #endif
  241.  
  242. //Beeper Property Page
  243. DEFINE_GUID(CLSID_BeeperPropertyPage, 0x0002116B, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  244.  
  245. #endif
  246.  
  247. //Chapter 17
  248. #ifdef CHAPTER17
  249. DEFINE_GUID(CLSID_PatronPages,        0x0002114D, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  250. DEFINE_GUID(CLSID_DataTransferObject, 0x0002115A, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  251. #endif
  252.  
  253.  
  254. //Chapter 18
  255. #ifdef CHAPTER18
  256. DEFINE_GUID(CLSID_CosmoFigure,        0x0002114E, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  257. DEFINE_GUID(CLSID_DataTransferObject, 0x0002115A, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  258. #endif
  259.  
  260.  
  261. //Chapter 19
  262. #ifdef CHAPTER19
  263. DEFINE_GUID(IID_IPolyline10,           0x00021158, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  264. DEFINE_GUID(IID_IPolylineAdviseSink10, 0x00021159, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  265. DEFINE_GUID(CLSID_Polyline19,          0x0002116D, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  266.  
  267. DEFINE_GUID(CLSID_CosmoFigure,         0x0002114E, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  268. #endif
  269.  
  270. //Chapter 20
  271. #ifdef CHAPTER20
  272. DEFINE_GUID(CLSID_PatronPages,        0x0002114D, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  273. DEFINE_GUID(CLSID_DataTransferObject, 0x0002115A, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  274. DEFINE_GUID(CLSID_LinksAssistant,     0x0002116E, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  275.  
  276. //For OLEUI, not defined in OLE headers
  277. DEFINE_GUID(IID_IOleUILinkContainer,  0x0002116F, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  278. #endif
  279.  
  280. //Chapter 21
  281. #ifdef CHAPTER21
  282. DEFINE_GUID(CLSID_PatronPages,        0x0002114D, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  283. DEFINE_GUID(CLSID_CosmoFigure,        0x0002114E, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  284.  
  285. DEFINE_GUID(IID_IPolyline10,           0x00021158, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  286. DEFINE_GUID(IID_IPolylineAdviseSink10, 0x00021159, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  287.  
  288. //This is used for Polyline21 as well
  289. DEFINE_GUID(CLSID_Polyline19,          0x0002116D, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  290.  
  291. DEFINE_GUID(CLSID_DataTransferObject, 0x0002115A, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  292. DEFINE_GUID(CLSID_LinksAssistant,     0x0002116E, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  293. DEFINE_GUID(IID_IOleUILinkContainer,  0x0002116F, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  294. #endif
  295.  
  296. //Chapter 22
  297. #ifdef CHAPTER22
  298. DEFINE_GUID(CLSID_PatronPages,        0x0002114D, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  299. DEFINE_GUID(CLSID_DataTransferObject, 0x0002115A, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  300. DEFINE_GUID(CLSID_LinksAssistant,     0x0002116E, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  301. DEFINE_GUID(IID_IOleUILinkContainer,  0x0002116F, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  302. #endif
  303.  
  304. //Chapter 23
  305. #ifdef CHAPTER23
  306. DEFINE_GUID(CLSID_CosmoFigure,        0x0002114E, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  307. DEFINE_GUID(CLSID_DataTransferObject, 0x0002115A, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  308.  
  309. DEFINE_GUID(IID_IPolyline10,           0x00021158, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  310. DEFINE_GUID(IID_IPolylineAdviseSink10, 0x00021159, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  311.  
  312. //This is used for Polyline23 as well
  313. DEFINE_GUID(CLSID_Polyline19,          0x0002116D, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  314.  
  315. #endif
  316.  
  317. //Chapter 24
  318. #ifdef CHAPTER24
  319.  
  320. DEFINE_GUID(IID_IPolyline10,           0x00021158, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  321. DEFINE_GUID(CLSID_PatronPages,        0x0002114D, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  322.  
  323. DEFINE_GUID(CLSID_DataTransferObject, 0x0002115A, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  324. DEFINE_GUID(CLSID_LinksAssistant,     0x0002116E, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  325. DEFINE_GUID(IID_IOleUILinkContainer,  0x0002116F, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  326.  
  327.  
  328. #ifndef GUIDS_FROM_TYPELIB
  329. DEFINE_GUID(IID_IPolylineAdviseSink10,   0x00021159, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  330. DEFINE_GUID(DIID_DIPolylineAdviseSink10, 0x00021170, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  331. DEFINE_GUID(IID_IPolylineControl,        0x00021171, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  332. DEFINE_GUID(DIID_DIPolylineControl,      0x00021172, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  333. DEFINE_GUID(LIBID_Polyline,              0x00021173, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  334.  
  335. //This is used for Polyline25 as well
  336. DEFINE_GUID(CLSID_Polyline19,          0x0002116D, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  337. #endif //GUIDSFROMTYPELIB
  338.  
  339. DEFINE_GUID(CLSID_PolylinePropPage,    0x00021174, 0, 0, 0xC0,0,0,0,0,0,0,0x46);
  340. #endif
  341.  
  342.  
  343. //Chapter 25
  344. #ifdef CHAPTER25
  345. #endif
  346.  
  347. #endif //_BOOKGUID_H_
  348.