Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

180 lines
6.0 KiB

  1. cpp_quote("#ifndef _WEBVW_H_")
  2. cpp_quote("#define _WEBVW_H_")
  3. #include <olectl.h>
  4. // webvw.idl : IDL source for webvw.dll
  5. //
  6. // This file will be processed by the MIDL tool to
  7. // produce the type library (webvw.tlb) and marshalling code.
  8. import "oaidl.idl";
  9. import "ocidl.idl";
  10. import "shldisp.idl";
  11. #include "webvwid.h"
  12. // IThumbCtl interface
  13. [
  14. object,
  15. uuid(e8accae0-23e6-11d1-9e88-00c04fdcab92),
  16. dual,
  17. helpstring("IThumbCtl Interface"),
  18. pointer_default(unique)
  19. ]
  20. interface IThumbCtl : IDispatch
  21. {
  22. [id(1), helpstring("method displayFile")] HRESULT displayFile(BSTR bsFileName, [retval, out] VARIANT_BOOL *);
  23. [id(2), helpstring("method haveThumbnail")] HRESULT haveThumbnail([retval, out] VARIANT_BOOL *);
  24. [propget, id(3), helpstring("property freeSpace")] HRESULT freeSpace([retval, out] BSTR *);
  25. [propget, id(4), helpstring("property usedSpace")] HRESULT usedSpace([retval, out] BSTR *);
  26. [propget, id(5), helpstring("property totalSpace")] HRESULT totalSpace([retval, out] BSTR *);
  27. };
  28. // IWebView interface
  29. [
  30. object,
  31. uuid(BCFD624C-705A-11d2-A2AF-00C04FC30871),
  32. dual,
  33. helpstring("IWebView Interface"),
  34. pointer_default(unique)
  35. ]
  36. interface IWebView : IDispatch
  37. {
  38. [id(1), helpstring("method OnCSCClick")] HRESULT OnCSCClick();
  39. [id(2), helpstring("method CSCSynchronize")] HRESULT CSCSynchronize();
  40. [id(3), helpstring("method OnCSCMouseOver")] HRESULT OnCSCMouseOver();
  41. [id(4), helpstring("method OnCSCMouseOut")] HRESULT OnCSCMouseOut();
  42. };
  43. // IWebViewFolderIcon interface
  44. [
  45. object,
  46. uuid(99DB2085-323A-11d2-A1D4-00A0C9A63FD0),
  47. dual,
  48. helpstring("IWebViewFolderIcon Interface"),
  49. pointer_default(unique)
  50. ]
  51. interface IWebViewFolderIcon : IDispatch
  52. {
  53. [id(DISPID_PROP_WVFOLDERICON_SCALE), propget, helpstring("property scale")] HRESULT scale([retval, out] BSTR *);
  54. [id(DISPID_PROP_WVFOLDERICON_SCALE), propput, helpstring("property scale")] HRESULT scale([in] BSTR);
  55. [id(DISPID_PROP_WVFOLDERICON_PATH), propget, helpstring("property path")] HRESULT path([retval, out] BSTR *);
  56. [id(DISPID_PROP_WVFOLDERICON_PATH), propput, helpstring("property path")] HRESULT path([in] BSTR);
  57. [id(DISPID_PROP_WVFOLDERICON_VIEW), propget, helpstring("property view")] HRESULT view([retval, out] BSTR *);
  58. [id(DISPID_PROP_WVFOLDERICON_VIEW), propput, helpstring("property view")] HRESULT view([in] BSTR);
  59. [id(DISPID_PROP_WVFOLDERICON_ADVPROPERTY), propget, helpstring("advanced properties")]
  60. HRESULT advproperty([retval, out] VARIANT_BOOL *);
  61. [id(DISPID_PROP_WVFOLDERICON_ADVPROPERTY), propput, helpstring("advanced properties")]
  62. HRESULT advproperty([in] VARIANT_BOOL);
  63. };
  64. // IWebViewFolderIcon2 interface
  65. [
  66. object,
  67. uuid(224AFAC1-3145-11d2-A1D3-00A0C9A63FD0),
  68. helpstring("IWebViewFolderIcon2 Interface"),
  69. pointer_default(unique),
  70. dual
  71. ]
  72. interface IWebViewFolderIcon2 : IWebViewFolderIcon
  73. {
  74. [id(DISPID_WVFOLDERICON_SETSLICE), helpstring("method setSlice")]
  75. HRESULT setSlice([in]int index, VARIANT varHiBytes, VARIANT varLoBytes, VARIANT varColorref);
  76. };
  77. // IWebViewFolderIcon3 interface
  78. [
  79. object,
  80. uuid(7E20114A-7DB7-4e57-B03C-5CCB8C2B85E2),
  81. helpstring("IWebViewFolderIcon3 Interface"),
  82. pointer_default(unique),
  83. dual
  84. ]
  85. interface IWebViewFolderIcon3 : IWebViewFolderIcon2
  86. {
  87. [id(DISPID_PROP_WVFOLDERICON_ITEM), propget, helpstring("property item")] HRESULT item([retval, out] FolderItem ** ppFolderItem);
  88. [id(DISPID_PROP_WVFOLDERICON_ITEM), propput, helpstring("property item")] HRESULT item([in] FolderItem * pFolderItem);
  89. [id(DISPID_PROP_WVFOLDERICON_CLICKSTYLE), propget, helpstring("property clickStyle")]
  90. HRESULT clickStyle([retval, out] LONG *plClickStyle);
  91. [id(DISPID_PROP_WVFOLDERICON_CLICKSTYLE), propput, helpstring("property clickStyle")]
  92. HRESULT clickStyle([in] LONG lClickStyle);
  93. [id(DISPID_PROP_WVFOLDERICON_LABELGAP), propget, helpstring("property labelGap")]
  94. HRESULT labelGap([retval, out] LONG *plLabelGap);
  95. [id(DISPID_PROP_WVFOLDERICON_LABELGAP), propput, helpstring("property labelGap")]
  96. HRESULT labelGap([in] LONG lLabelGap);
  97. };
  98. // WebView Library
  99. [
  100. uuid(cd603fc0-1f11-11d1-9e88-00c04fdcab92),
  101. version(1.0),
  102. helpstring("webvw 1.0 Type Library")
  103. ]
  104. library WEBVWLib
  105. {
  106. importlib("stdole2.tlb");
  107. // ThumbCtl
  108. [
  109. uuid(58d6f4b0-181d-11d1-9e88-00c04fdcab92), // DIID_DThumbCtlEvents
  110. helpstring("Event interface for ThumbCtl")
  111. ]
  112. dispinterface DThumbCtlEvents
  113. {
  114. properties:
  115. methods:
  116. [id(DISPID_ONTHUMBNAILREADY), helpstring("The Thumbnail is ready to be displayed."), helpcontext(0x0000)]
  117. void OnThumbnailReady();
  118. }
  119. [
  120. uuid(71650000-E8A8-11d2-9652-00C04FC30871),
  121. helpstring("ThumbCtl Class")
  122. ]
  123. coclass ThumbCtl
  124. {
  125. [default] interface IThumbCtl;
  126. [default, source] dispinterface DThumbCtlEvents;
  127. };
  128. [
  129. uuid(BCFD624E-705A-11d2-A2AF-00C04FC30871),
  130. helpstring("WebView Class")
  131. ]
  132. coclass WebView
  133. {
  134. [default] interface IWebView;
  135. };
  136. [
  137. uuid(D55780B9-CA4C-4833-A48B-CD779A0A9C3E), // DIID_DWebViewFolderIconEvents
  138. helpstring("Event interface for WebViewFolderIcon"),
  139. ]
  140. dispinterface DWebViewFolderIconEvents
  141. {
  142. properties:
  143. methods:
  144. [id(DISPID_WEBVIEWFOLDERICON_ONTHUMBNAILREADY), helpstring("(When the foldericon is set to thumbnail mode) the thumbnail is ready to be displayed."), helpcontext(0x0000)]
  145. void OnWebViewFolderIconThumbnailReady();
  146. }
  147. [
  148. uuid(844F4806-E8A8-11d2-9652-00C04FC30871),
  149. helpstring("WebViewFolderIcon Class")
  150. ]
  151. coclass WebViewFolderIcon
  152. {
  153. [default] interface IWebViewFolderIcon3;
  154. [default, source] dispinterface DWebViewFolderIconEvents;
  155. };
  156. };
  157. cpp_quote("#endif // _WEBVW_H_")