Source code of Windows XP (NT5)
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.

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