iedisp.odl
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 8k
Category:

Windows Kernel

Development Platform:

Visual C++

  1. //LIBID_SHELL
  2. // 4547D580-355D-11CF-A9BC-00AA004AE837
  3. // DEFINE_GUID(varNameHere, 0x4547D580L, 0x355D, 0x11CF, 0xA9, 0xBC, 0x00, 0xAA, 0x00, 0x4A, 0xE8, 0x37);
  4. [
  5. uuid(4547D580-355D-11CF-A9BC-00AA004AE837)
  6.     , helpstring("Shell Explorer Type Library")
  7.     , lcid(0x0000)
  8.     , version(1.0)
  9. ]
  10. library ShellExplorerTypeLibrary
  11.     {
  12.     importlib("STDOLE32.TLB");
  13. // IID_DHyperLink: {0002DF07-0000-0000-C000-000000000046}
  14. [
  15. uuid(0002DF07-0000-0000-C000-000000000046),
  16. helpstring("HyperLink Object."),
  17. helpcontext(0x0000),
  18. hidden,
  19. oleautomation,
  20. dual
  21. ]
  22. interface DHyperLink : IDispatch
  23. {
  24. // id(0) indicates that this is the "value" member.
  25. [id(0), propget, helpstring("Returns or sets the Friendly Name for the HyperLink."), helpcontext(0x0000)]
  26. HRESULT FriendlyName([out, retval] BSTR* pbstrName);
  27. [id(0), propput, helpstring("Returns or sets the Friendly Name for the HyperLink."), helpcontext(0x0000)]
  28. HRESULT FriendlyName([in] BSTR bstrName);
  29. [propget, helpstring("Returns or sets the string reference for the HyperLink."), helpcontext(0x0000)]
  30. HRESULT Source([out,retval] BSTR* pbstrSource);
  31. [propput, helpstring("Returns or sets the string reference for the HyperLink."), helpcontext(0x0000)]
  32. HRESULT Source([in] BSTR bstrSource);
  33. [helpstring("Jumps to the hyperlink."), helpcontext(0x0000)]
  34. HRESULT Navigate([in,optional]VARIANT* OpenInNewWindow, [in,optional] VARIANT* NoHistory);
  35. [propget, helpstring("Returns a pointer to creator of the object."), helpcontext(0x0000)]
  36. HRESULT Application([out,retval] IDispatch** ppDisp);
  37. [propget, helpstring("Returns a pointer to the IExplorer Object."), helpcontext(0x0000)]
  38. HRESULT Parent([out,retval] IDispatch** ppDisp);
  39. };
  40. // IID_DInternetHistory: {0002DF04-0000-0000-C000-000000000046}
  41. [
  42. uuid(0002DF04-0000-0000-C000-000000000046),
  43. helpstring("Internet History Object."),
  44. helpcontext(0x0000),
  45. oleautomation,
  46. hidden,
  47. dual
  48. ]
  49. interface DInternetHistory : IDispatch
  50. {
  51. // id(0) indicates that this is the "value" member.
  52. [id(0), helpstring("Returns a specific Hyperlink object either by HLID or name."), helpcontext(0x0000)]
  53. HRESULT Item([in] VARIANT* Index, [out, retval] VARIANT* pVarResult);
  54.         [helpstring("Adds a Hyperlink to the collection"), helpcontext(0x0000)]
  55. HRESULT Add(
  56.                          [in] DHyperLink* HLink,
  57.                         [in, optional] VARIANT* Key,
  58.                          [in, optional] VARIANT* Before,
  59.                          [in, optional] VARIANT* After);
  60.         [helpstring("Returns the number of Hyperlinks in the collection"), helpcontext(0x0000)]
  61. HRESULT Count([out,retval] long* plCount);
  62.         [helpstring("Removes a Hyperlink from a Collection object"), helpcontext(0x0000)]
  63. HRESULT Remove([in] VARIANT* Index);
  64. [id(-4), restricted, propget]
  65. HRESULT _NewEnum([out, retval] IUnknown** ppUnk);
  66. [propget, helpstring("Returns a pointer to the IExplorer Object."), helpcontext(0x0000)]
  67. HRESULT Application([out,retval] IDispatch** ppDisp);
  68. [propget, helpstring("Returns a pointer to creator of the object."), helpcontext(0x0000)]
  69. HRESULT Parent([out,retval] IDispatch** ppDisp);
  70. };
  71. // IID_DIExplorer: {0002DF05-0000-0000-C000-000000000046}
  72. [
  73. uuid(0002DF05-0000-0000-C000-000000000046),
  74. helpstring("Internet Explorer Frame Object."),
  75. helpcontext(0x0000),
  76. hidden,
  77. oleautomation,
  78. dual
  79. ]
  80. interface DIExplorer : IDispatch
  81. {
  82. // Standard OLE Automation required methods and properties
  83. // id(0) indicates that this is the "value" member.
  84. [id(0), propget, helpstring("Returns name of the application."), helpcontext(0x0000)]
  85. HRESULT Name([out,retval] BSTR* pbstrName);
  86. [propget, helpstring("Returns the full pathname to the IExplorer executable."), helpcontext(0x0000)]
  87. HRESULT FullName([out,retval] BSTR* pbstrFullName);
  88. [propget, helpstring("Returns a pointer to the IExplorer Object."), helpcontext(0x0000)]
  89. HRESULT Application([out,retval] IDispatch** ppDisp);
  90. [propget, helpstring("Returns a pointer to the IExplorer Object."), helpcontext(0x0000)]
  91. HRESULT Parent([out,retval] IDispatch** ppDisp);
  92.                 [propget, helpstring("The horizontal position (pixels) of the frame window relative to the screen"), helpcontext(0x0000)]
  93.                         HRESULT Left([out, retval] long *pl);
  94.                 [propput]
  95.                         HRESULT Left([in] long Left);
  96.                 [propget, helpstring("The vertical position (pixels) of the frame window relative to the screen"), helpcontext(0x0000)]
  97.                         HRESULT Top([out, retval] long *pl);
  98.                 [propput]
  99.                         HRESULT Top([in] long Top);
  100.                 [propget, helpstring("The horizontal dimension (pixels) of the frame window"), helpcontext(0x0000)]
  101.                         HRESULT Width([out, retval] long *pl);
  102.                 [propput]
  103.                         HRESULT Width([in] long Width);
  104.                 [propget, helpstring("The vertical dimension (pixels) of the frame window"), helpcontext(0x0000)]
  105.                         HRESULT Height([out, retval] long *pl);
  106.                 [propput]
  107.                         HRESULT Height([in] long Height);
  108.         //        [propget, helpstring("The text in the status bar"), helpcontext(0x0000)]
  109.         //            BSTR    StatusBar(void);
  110.         //        [propput]
  111.         //                HRESULT   StatusBar([in] BSTR Text);
  112. [propget, helpstring("Determines whether IExplorer is visible or hidden."), helpcontext(0x0000)]
  113. HRESULT Visible([out, retval] boolean* pBool);
  114. [propput, helpstring("Determines whether IExplorer is visible or hidden."), helpcontext(0x0000)]
  115. HRESULT Visible([in] boolean Value);
  116. [propget, helpstring("Returns the active Document."), helpcontext(0x0000)]
  117. HRESULT Document([out,retval] IDispatch** ppDisp);
  118. // Added a property to see if the viewer is currenly busy or not...
  119. [propget, helpstring("Query to see if something is still in progress."), helpcontext(0x0000)]
  120. HRESULT Busy([out,retval] boolean *pBool);
  121. // End of modifications
  122. [helpstring("Exits IExplorer and closes the open document."), helpcontext(0x0000)]
  123. HRESULT Quit();
  124. // IExplorer specific methods and properties
  125. [helpstring("Opens a file."), helpcontext(0x0000)]
  126. HRESULT Open( [in] BSTR Source);
  127. [helpstring("Prints the current document."), helpcontext(0x0000)]
  128. HRESULT PrintOut([in] long What,
  129. [in] VARIANT Numbering,
  130. [in, optional] VARIANT FirstPage,
  131. [in, optional] VARIANT Sections,
  132. [in, optional] VARIANT FileName,
  133. [in, optional] VARIANT PrinterName,
  134. [in, optional] VARIANT DriverName,
  135. [in, optional] VARIANT NoPrinting);
  136. [helpstring("Navigates to a hyperlink."), helpcontext(0x0000)]
  137. HRESULT Navigate([in]DHyperLink* Hlink,
  138. [in,optional]VARIANT* OpenInNewWindow,
  139. [in,optional] VARIANT* NoHistory);
  140. [helpstring("Navigates to the previous item in the history list."), helpcontext(0x0000)]
  141. HRESULT GoBack();
  142. [helpstring("Navigates to the next item in the history list."), helpcontext(0x0000)]
  143. HRESULT GoForward();
  144. [helpstring("Go home/start page."), helpcontext(0x0000)]
  145. HRESULT GoHome();
  146. [helpstring("Stops opening a file."), helpcontext(0x0000)]
  147. HRESULT Stop();
  148. [helpstring("Refreshes the current file."), helpcontext(0x0000)]
  149. HRESULT Refresh();
  150.           [propget, helpstring("Returns the history list."), helpcontext(0x0000)]
  151. HRESULT History([out, retval] DInternetHistory** ppDInternetHistory);
  152. //          [propget, helpstring("Returns the Favorites list."), helpcontext(0x0000)]
  153. // HRESULT Favorites([out, retval] DInternetHistory** ppDInternetHistory);
  154. };
  155.     //CLSID_InternetExplorer
  156.     [
  157. uuid(0002DF01-0000-0000-C000-000000000046),
  158. helpstring("Internet Explorer Application Object."),
  159.     ]
  160.     coclass InternetExplorer
  161.         {
  162.         [default] interface       DIExplorer;
  163.         }
  164.   typedef
  165.      [
  166. uuid(0002DF08-0000-0000-C000-000000000046),
  167. helpstring("Constants for DInternetHistory")
  168. ]
  169. enum HlinkIDConstants {
  170. [helpstring("Previous Item")]  hlidPrevious = 0,
  171. [helpstring("Next Item")]  hlidNext = 0xFFFFFFFF,
  172. [helpstring("Current Item")]  hlidCurrent = 0xFFFFFFFE,
  173. [helpstring("Last Item")]  hlidStackBottom = 0xFFFFFFFD,
  174. [helpstring("First Item")]  hlidStackTop = 0xFFFFFFFC
  175. } HlinkIDConstants;
  176.     };