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.

248 lines
12 KiB

  1. // CompatUI.idl : IDL source for CompatUI.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (CompatUI.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. #include "olectl.h"
  8. [
  9. object,
  10. uuid(E84219C9-C6CA-42C9-BFAE-521D1B23AF96),
  11. dual,
  12. helpstring("IProgView Interface"),
  13. pointer_default(unique)
  14. ]
  15. interface IProgView : IDispatch
  16. {
  17. [propput, id(DISPID_BACKCOLOR)]
  18. HRESULT BackColor([in]OLE_COLOR clr);
  19. [propget, id(DISPID_BACKCOLOR)]
  20. HRESULT BackColor([out,retval]OLE_COLOR* pclr);
  21. [propput, id(DISPID_ENABLED)]
  22. HRESULT Enabled([in]VARIANT_BOOL vBool);
  23. [propget, id(DISPID_ENABLED)]
  24. HRESULT Enabled([out, retval]VARIANT_BOOL* pbool);
  25. [id(1), helpstring("method GetSelectedItem")] HRESULT GetSelectedItem();
  26. [propget, id(2), helpstring("property SelectionName")] HRESULT SelectionName([out, retval] VARIANT *pVal);
  27. [id(3), helpstring("method GetSelectionInformation")] HRESULT GetSelectionInformation([in]long lInformationClass, [out, retval] VARIANT* pVal);
  28. [id(4), helpstring("method PopulateList")] HRESULT PopulateList();
  29. [id(5), helpstring("method UpdateListItem")] HRESULT UpdateListItem([in]BSTR pTarget, [in]VARIANT* pKeys, [out, retval] BOOL* pResult);
  30. [id(6), helpstring("method CancelPopulateList")] HRESULT CancelPopulateList();
  31. /*
  32. [propget, id(7), helpstring("property Accel")] HRESULT Accel([out, retval] BSTR *pVal);
  33. [propput, id(7), helpstring("property Accel")] HRESULT Accel([in] BSTR newVal);
  34. */
  35. [propget, id(8), helpstring("property ExternAccel")] HRESULT ExternAccel([out, retval] BSTR *pVal);
  36. [propput, id(8), helpstring("property ExternAccel")] HRESULT ExternAccel([in] BSTR newVal);
  37. [propget, id(9), helpstring("property ExcludeFiles")] HRESULT ExcludeFiles([out, retval] BSTR* pVal);
  38. [propput, id(9), helpstring("property ExcludeFiles")] HRESULT ExcludeFiles([in] BSTR newVal);
  39. [propget, id(10), helpstring("property AccelCmd")] HRESULT AccelCmd([in] LONG lCmd, [out, retval] BSTR *pVal);
  40. [propput, id(10), helpstring("property AccelCmd")] HRESULT AccelCmd([in] LONG lCmd, [in] BSTR newVal);
  41. [id(11), helpstring("method ClearAccel")] HRESULT ClearAccel();
  42. [id(12), helpstring("method ClearExternAccel")] HRESULT ClearExternAccel();
  43. [propget, id(13), helpstring("property ItemCount")] HRESULT ItemCount([out, retval]VARIANT* pItemCount);
  44. };
  45. [
  46. object,
  47. uuid(C5A7C759-1E8D-4B1B-B1E4-59F7F9B5171B),
  48. dual,
  49. helpstring("IUtil Interface"),
  50. pointer_default(unique)
  51. ]
  52. interface IUtil : IDispatch
  53. {
  54. [id(1), helpstring("method RemoveArgs")] HRESULT RemoveArgs([in]BSTR sVar, [out, retval]VARIANT* pVal);
  55. [id(2), helpstring("method GetItemKeys")] HRESULT GetItemKeys([in]BSTR pszPath, [out, retval]VARIANT* pszKeys);
  56. [id(3), helpstring("method SetItemKeys")] HRESULT SetItemKeys([in]BSTR pszPath, [in]VARIANT* pszKeys, [in]VARIANT* pszKeysMachine, [out, retval]BOOL* pVal);
  57. [id(4), helpstring("method CheckAdminPrivileges")] HRESULT CheckAdminPrivileges([out, retval] BOOL* pVal);
  58. [id(5), helpstring("method RunApplication")] HRESULT RunApplication([in]BSTR pLayers, [in]BSTR pszCmdLine, [in]BOOL bEnableLog, [out, retval]DWORD* pResult);
  59. [id(6), helpstring("method GetExePathFromObject")] HRESULT GetExePathFromObject([in]BSTR pszPath, [out, retval]VARIANT* pVal);
  60. [id(7), helpstring("method IsSystemTarget")] HRESULT IsSystemTarget([in]BSTR bstrPath, [out, retval]BOOL* pbSystemTarget);
  61. [id(8), helpstring("method IsExecutableFile")] HRESULT IsExecutableFile([in]BSTR bstrPath, [out, retval]BOOL* pbExecutableFile);
  62. [id(9), helpstring("method IsCompatWizardDisabled")] HRESULT IsCompatWizardDisabled([out, retval]BOOL* pbDisabled);
  63. };
  64. [
  65. uuid(233A5627-7755-4B36-AA00-656B8846F501),
  66. version(1.0),
  67. helpstring("CompatUI 1.0 Type Library")
  68. ]
  69. library COMPATUILib
  70. {
  71. importlib("stdole32.tlb");
  72. importlib("stdole2.tlb");
  73. [
  74. uuid(4BCBFEC8-C7D4-4A48-A7A5-9824A6BA8755),
  75. helpstring("_IProgViewEvents Interface")
  76. ]
  77. dispinterface _IProgViewEvents
  78. {
  79. properties:
  80. methods:
  81. [id(1), helpstring("method DblClk")] HRESULT DblClk(LONG lFlags);
  82. [id(2), helpstring("method ProgramListReady")] HRESULT ProgramListReady();
  83. };
  84. [
  85. object,
  86. uuid(78A029DD-B561-4702-A7EF-0ECD12EEF7B1),
  87. dual,
  88. helpstring("ISelectFile Interface"),
  89. pointer_default(unique)
  90. ]
  91. interface ISelectFile : IDispatch
  92. {
  93. [propput, id(DISPID_BACKCOLOR)]
  94. HRESULT BackColor([in]OLE_COLOR clr);
  95. [propget, id(DISPID_BACKCOLOR)]
  96. HRESULT BackColor([out,retval]OLE_COLOR* pclr);
  97. [propput, id(DISPID_BACKSTYLE)]
  98. HRESULT BackStyle([in]long style);
  99. [propget, id(DISPID_BACKSTYLE)]
  100. HRESULT BackStyle([out,retval]long* pstyle);
  101. /* [propput, id(DISPID_BORDERCOLOR)]
  102. HRESULT BorderColor([in]OLE_COLOR clr);
  103. [propget, id(DISPID_BORDERCOLOR)]
  104. HRESULT BorderColor([out, retval]OLE_COLOR* pclr);
  105. [propput, id(DISPID_TABSTOP)]
  106. HRESULT TabStop([in]VARIANT_BOOL vbool);
  107. [propget, id(DISPID_TABSTOP)]
  108. HRESULT TabStop([out, retval]VARIANT_BOOL* pbool);
  109. [propput, id(DISPID_BORDERVISIBLE)]
  110. HRESULT BorderVisible([in]VARIANT_BOOL vbool);
  111. [propget, id(DISPID_BORDERVISIBLE)]
  112. HRESULT BorderVisible([out, retval]VARIANT_BOOL* pbool);
  113. */
  114. /*
  115. [propput, id(DISPID_VALID)]
  116. HRESULT Valid([in]VARIANT_BOOL vbool);
  117. [propget, id(DISPID_VALID)]
  118. HRESULT Valid([out, retval]VARIANT_BOOL* pbool);
  119. */
  120. [propput, id(DISPID_ENABLED)]
  121. HRESULT Enabled([in]VARIANT_BOOL vBool);
  122. [propget, id(DISPID_ENABLED)]
  123. HRESULT Enabled([out, retval]VARIANT_BOOL* pbool);
  124. [propget, id(1), helpstring("property BrowseTitle")] HRESULT BrowseTitle([out, retval] BSTR *pVal);
  125. [propput, id(1), helpstring("property BrowseTitle")] HRESULT BrowseTitle([in] BSTR newVal);
  126. [propget, id(2), helpstring("property BrowseFilter")] HRESULT BrowseFilter([out, retval] BSTR *pVal);
  127. [propput, id(2), helpstring("property BrowseFilter")] HRESULT BrowseFilter([in] BSTR newVal);
  128. [propget, id(3), helpstring("property BrowseInitialDirectory")] HRESULT BrowseInitialDirectory([out, retval] BSTR *pVal);
  129. [propput, id(3), helpstring("property BrowseInitialDirectory")] HRESULT BrowseInitialDirectory([in] BSTR newVal);
  130. [propget, id(4), helpstring("property BrowseFlags")] HRESULT BrowseFlags([out, retval] long *pVal);
  131. [propput, id(4), helpstring("property BrowseFlags")] HRESULT BrowseFlags([in] long newVal);
  132. [propget, id(5), helpstring("property FileName")] HRESULT FileName([out, retval] BSTR *pVal);
  133. [propput, id(5), helpstring("property FileName")] HRESULT FileName([in] BSTR newVal);
  134. [propget, id(6), helpstring("property ErrorCode")] HRESULT ErrorCode([out, retval] long *pVal);
  135. /* [propget, id(7), helpstring("property Accel")] HRESULT Accel([out, retval] BSTR *pVal);
  136. [propput, id(7), helpstring("property Accel")] HRESULT Accel([in] BSTR newVal);
  137. */
  138. [propget, id(8), helpstring("property ExternAccel")] HRESULT ExternAccel([out, retval] BSTR *pVal);
  139. [propput, id(8), helpstring("property ExternAccel")] HRESULT ExternAccel([in] BSTR newVal);
  140. [propget, id(9), helpstring("property BrowseBtnCaption")] HRESULT BrowseBtnCaption([out, retval] BSTR *pVal);
  141. [propput, id(9), helpstring("property BrowseBtnCaption")] HRESULT BrowseBtnCaption([in] BSTR newVal);
  142. [propget, id(10), helpstring("property AccelCmd")] HRESULT AccelCmd([in] LONG lCmd, [out, retval] BSTR *pVal);
  143. [propput, id(10), helpstring("property AccelCmd")] HRESULT AccelCmd([in] LONG lCmd, [in] BSTR newVal);
  144. [id(11), helpstring("method ClearAccel")] HRESULT ClearAccel();
  145. [id(12), helpstring("method ClearExternAccel")] HRESULT ClearExternAccel();
  146. };
  147. [
  148. uuid(B9B7D40C-0C41-4EAF-B0B5-6B41378C7F48),
  149. helpstring("ProgView Class")
  150. ]
  151. coclass ProgView
  152. {
  153. [default] interface IProgView;
  154. [default, source] dispinterface _IProgViewEvents;
  155. };
  156. [
  157. uuid(0355854A-7F23-47E2-B7C3-97EE8DD42CD8),
  158. helpstring("Util Class")
  159. ]
  160. coclass Util
  161. {
  162. [default] interface IUtil;
  163. };
  164. [
  165. uuid(FCFCB4A2-1656-458A-8713-83D5FD9A9C54),
  166. helpstring("_ISelectFileEvents Interface")
  167. ]
  168. dispinterface _ISelectFileEvents
  169. {
  170. properties:
  171. methods:
  172. [id(1), helpstring("method SelectionComplete")] HRESULT SelectionComplete();
  173. [id(2), helpstring("method StateChanged")] HRESULT StateChanged([in]LONG lState);
  174. };
  175. [
  176. object,
  177. uuid(F21EB30D-AA39-47F5-AB0B-686F783147B0),
  178. dual,
  179. helpstring("IUpload Interface"),
  180. pointer_default(unique)
  181. ]
  182. interface IUpload : IDispatch
  183. {
  184. [id(1), helpstring("method SetKey")] HRESULT SetKey([in]BSTR pszKey, [in]VARIANT* pvValue);
  185. [id(2), helpstring("method GetKey")] HRESULT GetKey([in]BSTR pszKey, [out, retval]VARIANT* pValue);
  186. [id(3), helpstring("method AddMatchingInfo")] HRESULT AddMatchingInfo
  187. ([in] BSTR pszCommand,
  188. [in, optional]VARIANT dwFilter,
  189. [in, optional]VARIANT pKey,
  190. [in, optional]VARIANT pDescription,
  191. [in, optional]VARIANT bProgress,
  192. [out, retval]BOOL* pbSuccess);
  193. [id(4), helpstring("method AddDataFile")] HRESULT AddDataFile
  194. ([in]BSTR pszDataFile,
  195. [in, optional]VARIANT pszKey,
  196. [in, optional]VARIANT pszDescription,
  197. [in, optional]VARIANT bOwn);
  198. [id(5), helpstring("method RemoveDataFile")] HRESULT RemoveDataFile([in]BSTR pszDataFile);
  199. [id(6), helpstring("method CreateManifestFile")] HRESULT CreateManifestFile([out, retval]BOOL *pbSuccess);
  200. [id(7), helpstring("method SendReport")] HRESULT SendReport([out, retval]BOOL* pbSuccess);
  201. [id(8), helpstring("method AddDescriptionFile")] HRESULT AddDescriptionFile
  202. ([in]BSTR pszApplicationName,
  203. [in]BSTR pszApplicationPath,
  204. [in]LONG lMediaType,
  205. [in]BOOL bCompatSuccess,
  206. [in]VARIANT* pvFixesApplied,
  207. [in, optional]VARIANT pszKey,
  208. [out, retval]BOOL* pbSuccess);
  209. [id(9), helpstring("method DeleteTempFiles")] HRESULT DeleteTempFiles();
  210. [id(10), helpstring("method ShowTempFiles")] HRESULT ShowTempFiles();
  211. [id(11), helpstring("method GetDataFile")] HRESULT GetDataFile([in]VARIANT vKey, [in]LONG InformationClass, [out, retval]VARIANT* pbstrVal);
  212. };
  213. [
  214. uuid(66CBC149-A49F-48F9-B17A-6A3EA9B42A87),
  215. helpstring("SelectFile Class")
  216. ]
  217. coclass SelectFile
  218. {
  219. [default] interface ISelectFile;
  220. [default, source] dispinterface _ISelectFileEvents;
  221. };
  222. [
  223. uuid(31EAD8CC-C2F6-4639-BA99-5F495F9B1502),
  224. helpstring("Upload Class")
  225. ]
  226. coclass Upload
  227. {
  228. [default] interface IUpload;
  229. };
  230. };