home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / shlguid.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  9KB  |  226 lines

  1. //===========================================================================
  2. //
  3. // Copyright (c) Microsoft Corporation 1995-1997
  4. //
  5. // File: shlguid.h
  6. //
  7. //===========================================================================
  8.  
  9. #ifndef _SHLGUID_H_
  10. #define _SHLGUID_H_
  11.  
  12. #ifndef _WIN32_IE
  13. #define _WIN32_IE 0x0400
  14. #else
  15. #if (_WIN32_IE < 0x0400) && defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0500)
  16. #error _WIN32_IE setting conflicts with _WIN32_WINNT setting
  17. #endif
  18. #endif
  19.  
  20. //
  21. // For shell-reserved GUID
  22. //
  23. //  The Win95 Shell has been allocated a block of 256 GUIDs,
  24. // which follow the general format:
  25. //
  26. //  000214xx-0000-0000-C000-000000000046
  27. //
  28. //
  29. #define DEFINE_SHLGUID(name, l, w1, w2) DEFINE_GUID(name, l, w1, w2, 0xC0,0,0,0,0,0,0,0x46)
  30.  
  31.  
  32. //
  33. // Class IDs        xx=00-8F
  34. //
  35. DEFINE_SHLGUID(CLSID_ShellDesktop,      0x00021400L, 0, 0);
  36. DEFINE_SHLGUID(CLSID_ShellLink,         0x00021401L, 0, 0);
  37.  
  38.  
  39. #if (_WIN32_IE >= 0x0400)
  40. //
  41. // CatInformation IDs   xx=90-9F
  42. //
  43. DEFINE_SHLGUID(CATID_BrowsableShellExt, 0x00021490L, 0, 0);
  44. DEFINE_SHLGUID(CATID_BrowseInPlace,     0x00021491L, 0, 0);
  45. DEFINE_SHLGUID(CATID_DeskBand,          0x00021492L, 0, 0);
  46. DEFINE_SHLGUID(CATID_InfoBand,          0x00021493L, 0, 0);
  47. DEFINE_SHLGUID(CATID_CommBand,          0x00021494L, 0, 0);
  48. #endif
  49.  
  50. // Format IDs       xx=A0-CF
  51. DEFINE_SHLGUID(FMTID_Intshcut,          0x000214A0L, 0, 0);
  52. DEFINE_SHLGUID(FMTID_InternetSite,      0x000214A1L, 0, 0);
  53.  
  54. // command group ids xx=D0-DF
  55. DEFINE_SHLGUID(CGID_Explorer,           0x000214D0L, 0, 0);
  56. DEFINE_SHLGUID(CGID_ShellDocView,       0x000214D1L, 0, 0);
  57.  
  58. #if (_WIN32_IE >= 0x0400)
  59. DEFINE_SHLGUID(CGID_ShellServiceObject, 0x000214D2L, 0, 0);
  60. DEFINE_SHLGUID(CGID_ExplorerBarDoc,     0x000214D3L, 0, 0);
  61. #endif
  62.  
  63.  
  64.  
  65. //
  66. // Interface IDs    xx=E0-FF
  67. //
  68. DEFINE_SHLGUID(IID_INewShortcutHookA,   0x000214E1L, 0, 0);
  69. DEFINE_SHLGUID(IID_IShellBrowser,       0x000214E2L, 0, 0);
  70. DEFINE_SHLGUID(IID_IShellView,          0x000214E3L, 0, 0);
  71. DEFINE_SHLGUID(IID_IContextMenu,        0x000214E4L, 0, 0);
  72. DEFINE_SHLGUID(IID_IShellIcon,          0x000214E5L, 0, 0);
  73. DEFINE_SHLGUID(IID_IShellFolder,        0x000214E6L, 0, 0);
  74.  
  75. DEFINE_SHLGUID(IID_IShellExtInit,       0x000214E8L, 0, 0);
  76. DEFINE_SHLGUID(IID_IShellPropSheetExt,  0x000214E9L, 0, 0);
  77. DEFINE_SHLGUID(IID_IPersistFolder,      0x000214EAL, 0, 0);
  78. DEFINE_SHLGUID(IID_IExtractIconA,       0x000214EBL, 0, 0);
  79. DEFINE_SHLGUID(IID_IShellDetails,       0x000214ECL, 0, 0);
  80. DEFINE_SHLGUID(IID_IDelayedRelease,     0x000214EDL, 0, 0);
  81. DEFINE_SHLGUID(IID_IShellLinkA,         0x000214EEL, 0, 0);
  82. DEFINE_SHLGUID(IID_IShellCopyHookA,     0x000214EFL, 0, 0);
  83. DEFINE_SHLGUID(IID_IFileViewerA,        0x000214F0L, 0, 0);
  84. DEFINE_SHLGUID(IID_ICommDlgBrowser,     0x000214F1L, 0, 0);
  85. DEFINE_SHLGUID(IID_IEnumIDList,         0x000214F2L, 0, 0);
  86. DEFINE_SHLGUID(IID_IFileViewerSite,     0x000214F3L, 0, 0);
  87. DEFINE_SHLGUID(IID_IContextMenu2,       0x000214F4L, 0, 0);
  88. DEFINE_SHLGUID(IID_IShellExecuteHookA,  0x000214F5L, 0, 0);
  89. DEFINE_SHLGUID(IID_IPropSheetPage,      0x000214F6L, 0, 0);
  90. DEFINE_SHLGUID(IID_INewShortcutHookW,   0x000214F7L, 0, 0);
  91. DEFINE_SHLGUID(IID_IFileViewerW,        0x000214F8L, 0, 0);
  92. DEFINE_SHLGUID(IID_IShellLinkW,         0x000214F9L, 0, 0);
  93. DEFINE_SHLGUID(IID_IExtractIconW,       0x000214FAL, 0, 0);
  94. DEFINE_SHLGUID(IID_IShellExecuteHookW,  0x000214FBL, 0, 0);
  95. DEFINE_SHLGUID(IID_IShellCopyHookW,     0x000214FCL, 0, 0);
  96. DEFINE_SHLGUID(IID_IRemoteComputerA,    0x000214FDL, 0, 0);
  97. DEFINE_SHLGUID(IID_IRemoteComputerW,    0x000214FEL, 0, 0);
  98.  
  99. #if (_WIN32_IE >= 0x0400)
  100. DEFINE_SHLGUID(IID_IQueryInfo,          0x00021500L, 0, 0);
  101. #endif
  102.  
  103. DEFINE_GUID(IID_IBriefcaseStg,          0x8BCE1FA1L, 0x0921, 0x101B, 0xB1, 0xFF, 0x00, 0xDD, 0x01, 0x0C, 0xCC, 0x48);
  104. DEFINE_GUID(IID_IShellView2,            0x88E39E80L, 0x3578, 0x11CF, 0xAE, 0x69, 0x08, 0x00, 0x2B, 0x2E, 0x12, 0x62);
  105.  
  106. #if (_WIN32_IE >= 0x0400)
  107. DEFINE_GUID(IID_IURLSearchHook,         0xAC60F6A0L, 0x0FD9, 0x11D0, 0x99, 0xCB, 0x00, 0xC0, 0x4F, 0xD6, 0x44, 0x97);
  108. DEFINE_GUID(IID_IDelegateFolder,        0xADD8BA80L, 0x002B, 0x11D0, 0x8F, 0x0F, 0x00, 0xC0, 0x4F, 0xD7, 0xD0, 0x62);
  109.  
  110. DEFINE_GUID(IID_IInputObject,           0x68284faa, 0x6a48, 0x11d0, 0x8c, 0x78, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0xb4);
  111. DEFINE_GUID(IID_IInputObjectSite,       0xf1db8392, 0x7331, 0x11d0, 0x8c, 0x99, 0x0, 0xa0, 0xc9, 0x2d, 0xbf, 0xe8);
  112.  
  113. DEFINE_GUID(IID_IDockingWindow,         0x12dd920, 0x7b26, 0x11d0, 0x8c, 0xa9, 0x0, 0xa0, 0xc9, 0x2d, 0xbf, 0xe8);
  114. DEFINE_GUID(IID_IDockingWindowSite,     0x2a342fc2, 0x7b26, 0x11d0, 0x8c, 0xa9, 0x0, 0xa0, 0xc9, 0x2d, 0xbf, 0xe8);
  115. DEFINE_GUID(IID_IDockingWindowFrame,    0x47d2657a, 0x7b27, 0x11d0, 0x8c, 0xa9, 0x0, 0xa0, 0xc9, 0x2d, 0xbf, 0xe8);
  116.  
  117. DEFINE_GUID(IID_IShellIconOverlay,      0x7D688A70L, 0xC613, 0x11D0, 0x99, 0x9B, 0x00, 0xC0, 0x4F, 0xD6, 0x55, 0xE1);
  118. DEFINE_GUID(IID_IShellIconOverlayManager, 0x63B51F80L, 0xC868, 0x11D0, 0x99, 0x9C, 0x00, 0xC0, 0x4F, 0xD6, 0x55, 0xE1);
  119. DEFINE_GUID(IID_IShellIconOverlayIdentifier,  0x0C6C4200L, 0xC589, 0x11D0, 0x99, 0x9A, 0x00, 0xC0, 0x4F, 0xD6, 0x55, 0xE1);
  120.  
  121. // {1AC3D9F0-175C-11d1-95BE-00609797EA4F}
  122. DEFINE_GUID(IID_IPersistFolder2,        0x1ac3d9f0, 0x175c, 0x11d1, 0x95, 0xbe, 0x0, 0x60, 0x97, 0x97, 0xea, 0x4f);
  123.  
  124. // {63B51F81-C868-11D0-999C-00C04FD655E1}
  125. DEFINE_GUID(CLSID_CFSIconOverlayManager, 0x63B51F81L, 0xC868, 0x11D0, 0x99, 0x9C, 0x00, 0xC0, 0x4F, 0xD6, 0x55, 0xE1);
  126.  
  127. // Shell Icon Overlay Identifiers
  128. // {7D688A77-C613-11D0-999B-00C04FD655E1}
  129. DEFINE_GUID(CLSID_OverlayIdentifier_SlowFile, 0x7D688A77L, 0xC613, 0x11D0, 0x99, 0x9B, 0x00, 0xC0, 0x4F, 0xD6, 0x55, 0xE1);
  130.  
  131.  
  132. // {BCFCE0A0-EC17-11d0-8D10-00A0C90F2719}
  133. DEFINE_GUID(IID_IContextMenu3,          0xbcfce0a0, 0xec17, 0x11d0, 0x8d, 0x10, 0x0, 0xa0, 0xc9, 0xf, 0x27, 0x19);
  134.  
  135.  
  136. /// DeskBar stuff
  137. DEFINE_GUID(IID_IDeskBand,              0xEB0FE172L, 0x1A3A, 0x11D0, 0x89, 0xB3, 0x00, 0xA0, 0xC9, 0x0A, 0x90, 0xAC);
  138. #define CGID_DeskBand IID_IDeskBand
  139. #ifdef ISHELLTOOLBAND_COMPAT
  140. DEFINE_GUID(IID_IShellToolband,         0xEB0FE171L, 0x1A3A, 0x11D0, 0x89, 0xB3, 0x00, 0xA0, 0xC9, 0x0A, 0x90, 0xAC);
  141. #endif
  142. #endif
  143.  
  144.  
  145. #define SID_SShellBrowser IID_IShellBrowser
  146. #if (_WIN32_IE >= 0x0400)
  147. #define SID_SShellDesktop CLSID_ShellDesktop
  148. #endif
  149.  
  150. //
  151. //  IShellDiscardable is an IID-only interface. If the object supports this
  152. // interface it can be discarded anytime. IWebBrowser::PutProperty QI's for
  153. // this interface to detect discardable properties. 
  154. //
  155. DEFINE_GUID(IID_IDiscardableBrowserProperty, 0x49c3de7c, 0xd329, 0x11d0, 0xab, 0x73, 0x00, 0xc0, 0x4f, 0xc3, 0x3e, 0x80);
  156.  
  157. #ifdef UNICODE
  158. #define IID_IFileViewer         IID_IFileViewerW
  159. #define IID_IShellLink          IID_IShellLinkW
  160. #define IID_IExtractIcon        IID_IExtractIconW
  161. #define IID_IShellCopyHook      IID_IShellCopyHookW
  162. #define IID_IShellExecuteHook   IID_IShellExecuteHookW
  163. #define IID_INewShortcutHook    IID_INewShortcutHookW
  164. #else
  165. #define IID_IFileViewer         IID_IFileViewerA
  166. #define IID_IShellLink          IID_IShellLinkA
  167. #define IID_IExtractIcon        IID_IExtractIconA
  168. #define IID_IShellCopyHook      IID_IShellCopyHookA
  169. #define IID_IShellExecuteHook   IID_IShellExecuteHookA
  170. #define IID_INewShortcutHook    IID_INewShortcutHookA
  171. #endif
  172.  
  173.  
  174. #ifndef NO_INTSHCUT_GUIDS
  175. // Include internet shortcut GUIDs
  176. #include <isguids.h>
  177. #endif
  178.  
  179. #ifndef NO_SHDOCVW_GUIDS
  180.  
  181. #include <exdisp.h>
  182.  
  183.  
  184. #if (_WIN32_IE >= 0x0400)
  185. // UrlHistory Guids
  186. DEFINE_GUID(CLSID_CUrlHistory,          0x3C374A40L, 0xBAE4, 0x11CF, 0xBF, 0x7D, 0x00, 0xAA, 0x00, 0x69, 0x46, 0xEE);
  187. #define SID_SUrlHistory         CLSID_CUrlHistory
  188.  
  189. //UrlSearchHook Guids
  190. DEFINE_GUID(CLSID_CURLSearchHook,       0xCFBFAE00L, 0x17A6, 0x11D0, 0x99, 0xCB, 0x00, 0xC0, 0x4F, 0xD6, 0x44, 0x97);
  191.  
  192.  
  193. #define SID_SInternetExplorer IID_IWebBrowserApp
  194. #define SID_SWebBrowserApp    IID_IWebBrowserApp
  195.  
  196.  
  197. //
  198. // Top-most browser implementation in the heirarchy. use IServiceProvider::QueryService()
  199. // to get to interfaces (IID_IShellBrowser, IID_IBrowserService, etc.)
  200. //
  201. DEFINE_GUID(SID_STopLevelBrowser,       0x4C96BE40L, 0x915C, 0x11CF, 0x99, 0xD3, 0x00, 0xAA, 0x00, 0x4A, 0xE8, 0x37);
  202.  
  203. #endif
  204.  
  205. #endif
  206.  
  207.  
  208. #if (_WIN32_IE >= 0x0400)
  209.  
  210. // {75048700-EF1F-11D0-9888-006097DEACF9}
  211. DEFINE_GUID( CLSID_ActiveDesktop, 0x75048700L, 0xEF1F, 0x11D0, 0x98, 0x88, 0x00, 0x60, 0x97, 0xDE, 0xAC, 0xF9);
  212.  
  213. // {F490EB00-1240-11D1-9888-006097DEACF9}
  214. DEFINE_GUID(IID_IActiveDesktop, 0xF490EB00L, 0x1240, 0x11D1, 0x98, 0x88, 0x00, 0x60, 0x97, 0xDE, 0xAC, 0xF9);
  215.  
  216.  
  217. // {56FDF344-FD6D-11d0-958A-006097C9A090}
  218. DEFINE_GUID(CLSID_TaskbarList, 0x56fdf344, 0xfd6d, 0x11d0, 0x95, 0x8a, 0x0, 0x60, 0x97, 0xc9, 0xa0, 0x90);
  219.  
  220. // {56FDF342-FD6D-11d0-958A-006097C9A090}
  221. DEFINE_GUID(IID_ITaskbarList, 0x56fdf342, 0xfd6d, 0x11d0, 0x95, 0x8a, 0x0, 0x60, 0x97, 0xc9, 0xa0, 0x90);
  222.  
  223. #endif  // _WIN32_IE
  224.  
  225. #endif // _SHLGUID_H_
  226.