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.

762 lines
34 KiB

  1. /******************************************************************************
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. HelpCtrUI.idl
  5. Abstract:
  6. This file contains the declaration of the set of coclasses and interfaces
  7. implemented by the Scripting Framework.
  8. Revision History:
  9. Davide Massarenti (Dmassare) 07/21/99
  10. created
  11. ******************************************************************************/
  12. cpp_quote( "#include <HelpCtrUIDID.h>" )
  13. cpp_quote( "#include <rdchost.h>" )
  14. cpp_quote( "#include <rdshost.h>" )
  15. cpp_quote( "#include <rdschan.h>" )
  16. cpp_quote( "#include <safrdm.h>" )
  17. #include <HelpCtrUIDID.h>
  18. ///////////////////////////////////////////////////////////////////////////////
  19. ///////////////////////////////////////////////////////////////////////////////
  20. ///////////////////////////////////////////////////////////////////////////////
  21. [
  22. object,
  23. uuid(FC7D9E11-3F9E-11d3-93C0-00C04F72DAF7),
  24. dual,
  25. oleautomation,
  26. helpstring("IPCHHelpCenterExternal Interface"),
  27. pointer_default(unique)
  28. ]
  29. interface IPCHHelpCenterExternal : IDispatch
  30. {
  31. //
  32. // Properties
  33. //
  34. [propget, id(DISPID_PCH_HCE__HELPSESSION )] HRESULT HelpSession ( [out, retval] IPCHHelpSession* *pVal );
  35. [propget, id(DISPID_PCH_HCE__CHANNELS )] HRESULT Channels ( [out, retval] ISAFReg* *pVal );
  36. [propget, id(DISPID_PCH_HCE__USERSETTINGS )] HRESULT UserSettings ( [out, retval] IPCHUserSettings2* *pVal );
  37. [propget, id(DISPID_PCH_HCE__SECURITY )] HRESULT Security ( [out, retval] IPCHSecurity* *pVal );
  38. [propget, id(DISPID_PCH_HCE__CONNECTIVITY )] HRESULT Connectivity ( [out, retval] IPCHConnectivity* *pVal );
  39. [propget, id(DISPID_PCH_HCE__DATABASE )] HRESULT Database ( [out, retval] IPCHTaxonomyDatabase* *pVal );
  40. [propget, id(DISPID_PCH_HCE__TEXTHELPERS )] HRESULT TextHelpers ( [out, retval] IPCHTextHelpers* *pVal );
  41. [propget, id(DISPID_PCH_HCE__EXTRAARGUMENT)] HRESULT ExtraArgument( [out, retval] BSTR *pVal );
  42. [propget, id(DISPID_PCH_HCE__HELPVIEWER )] HRESULT HelpViewer ( [out, retval] IUnknown* *pVal );
  43. [propget, id(DISPID_PCH_HCE__UI_NAVBAR )] HRESULT UI_NavBar ( [out, retval] IUnknown* *pVal );
  44. [propget, id(DISPID_PCH_HCE__UI_MININAVBAR)] HRESULT UI_MiniNavBar( [out, retval] IUnknown* *pVal );
  45. [propget, id(DISPID_PCH_HCE__UI_CONTEXT )] HRESULT UI_Context ( [out, retval] IUnknown* *pVal );
  46. [propget, id(DISPID_PCH_HCE__UI_CONTENTS )] HRESULT UI_Contents ( [out, retval] IUnknown* *pVal );
  47. [propget, id(DISPID_PCH_HCE__UI_HHWINDOW )] HRESULT UI_HHWindow ( [out, retval] IUnknown* *pVal );
  48. [propget, id(DISPID_PCH_HCE__WEB_CONTEXT )] HRESULT WEB_Context ( [out, retval] IUnknown* *pVal );
  49. [propget, id(DISPID_PCH_HCE__WEB_CONTENTS )] HRESULT WEB_Contents ( [out, retval] IUnknown* *pVal );
  50. [propget, id(DISPID_PCH_HCE__WEB_HHWINDOW )] HRESULT WEB_HHWindow ( [out, retval] IUnknown* *pVal );
  51. //
  52. // Methods
  53. //
  54. [id(DISPID_PCH_HCE__REGISTEREVENTS )] HRESULT RegisterEvents ( [in] BSTR id, [in] long pri, [in] IDispatch* function, [out,retval] long *cookie );
  55. [id(DISPID_PCH_HCE__UNREGISTEREVENTS)] HRESULT UnregisterEvents( [in] long cookie );
  56. ////////////////////////////////////////
  57. [id(DISPID_PCH_HCE__CREATEOBJECT_SEARCHENGINEMGR)] HRESULT CreateObject_SearchEngineMgr( [out, retval] IPCHSEManager* *ppSE );
  58. [id(DISPID_PCH_HCE__CREATEOBJECT_DATACOLLECTION )] HRESULT CreateObject_DataCollection ( [out, retval] ISAFDataCollection* *ppDC );
  59. [id(DISPID_PCH_HCE__CREATEOBJECT_CABINET )] HRESULT CreateObject_Cabinet ( [out, retval] ISAFCabinet* *ppCB );
  60. [id(DISPID_PCH_HCE__CREATEOBJECT_ENCRYPTION )] HRESULT CreateObject_Encryption ( [out, retval] ISAFEncrypt* *ppEn );
  61. [id(DISPID_PCH_HCE__CREATEOBJECT_INCIDENT )] HRESULT CreateObject_Incident ( [out, retval] ISAFIncident* *ppIn );
  62. [id(DISPID_PCH_HCE__CREATEOBJECT_CHANNEL )] HRESULT CreateObject_Channel ( [in ] BSTR bstrVendorID ,
  63. [in ] BSTR bstrProductID ,
  64. [out, retval] ISAFChannel* *ppSh );
  65. ////////////////////
  66. [id(DISPID_PCH_HCE__CREATEOBJECT_REMOTEDESKTOPSESSION )] HRESULT CreateObject_RemoteDesktopSession ( [in ] long lTimeout ,
  67. [in ] BSTR bstrConnectionParms,
  68. [in ] BSTR bstrUserHelpBlob,
  69. [out, retval] ISAFRemoteDesktopSession* *ppRCS );
  70. [id(DISPID_PCH_HCE__CONNECTTOEXPERT )] HRESULT ConnectToExpert ( [in ] BSTR bstrExpertConnectParm,
  71. [in ] LONG lTimeout,
  72. [out, retval] LONG *lSafErrorCode);
  73. [id(DISPID_PCH_HCE__CREATEOBJECT_REMOTEDESKTOPMANAGER )] HRESULT CreateObject_RemoteDesktopManager ( [out, retval] ISAFRemoteDesktopManager* *ppRDM );
  74. [id(DISPID_PCH_HCE__CREATEOBJECT_REMOTEDESKTOPCONNECTION )] HRESULT CreateObject_RemoteDesktopConnection ( [out, retval] ISAFRemoteDesktopConnection* *ppRDC );
  75. ////////////////////
  76. [id(DISPID_PCH_HCE__CREATEOBJECT_INTERCOMCLIENT)] HRESULT CreateObject_IntercomClient ([out, retval] ISAFIntercomClient* *ppI );
  77. [id(DISPID_PCH_HCE__CREATEOBJECT_INTERCOMSERVER)] HRESULT CreateObject_IntercomServer ([out, retval] ISAFIntercomServer* *ppI );
  78. ////////////////////
  79. [id(DISPID_PCH_HCE__CREATEOBJECT_CONTEXTMENU)] HRESULT CreateObject_ContextMenu( [out, retval] IPCHContextMenu* *ppCM );
  80. [id(DISPID_PCH_HCE__CREATEOBJECT_PRINTENGINE)] HRESULT CreateObject_PrintEngine( [out, retval] IPCHPrintEngine* *ppPE );
  81. ////////////////////////////////////////////////////////////
  82. [id(DISPID_PCH_HCE__OPENFILEASSTREAM )] HRESULT OpenFileAsStream ( [in] BSTR bstrFilename, [out, retval] IUnknown* *stream );
  83. [id(DISPID_PCH_HCE__CREATEFILEASSTREAM)] HRESULT CreateFileAsStream( [in] BSTR bstrFilename, [out, retval] IUnknown* *stream );
  84. [id(DISPID_PCH_HCE__COPYSTREAMTOFILE )] HRESULT CopyStreamToFile ( [in] BSTR bstrFilename, [in] IUnknown* stream );
  85. [id(DISPID_PCH_HCE__NETWORKALIVE )] HRESULT NetworkAlive ( [out, retval] VARIANT_BOOL *pVal );
  86. [id(DISPID_PCH_HCE__DESTINATIONREACHABLE)] HRESULT DestinationReachable( [in] BSTR bstrURL, [out, retval] VARIANT_BOOL *pVal );
  87. [id(DISPID_PCH_HCE__FORMATERROR)] HRESULT FormatError( [in] VARIANT vError, [out, retval] BSTR *pVal );
  88. [id(DISPID_PCH_HCE__REGREAD )] HRESULT RegRead ( [in] BSTR bstrKey, [out, retval] VARIANT *pVal );
  89. [id(DISPID_PCH_HCE__REGWRITE )] HRESULT RegWrite ( [in] BSTR bstrKey, [in ] VARIANT newVal, [in,optional] VARIANT vKind );
  90. [id(DISPID_PCH_HCE__REGDELETE)] HRESULT RegDelete( [in] BSTR bstrKey );
  91. ////////////////////////////////////////
  92. [id(DISPID_PCH_HCE__CLOSE )] HRESULT Close ();
  93. [id(DISPID_PCH_HCE__REFRESHUI)] HRESULT RefreshUI();
  94. [id(DISPID_PCH_HCE__PRINT)] HRESULT Print( [in] VARIANT window, [in] VARIANT_BOOL fEvent, [out, retval] VARIANT_BOOL *pVal );
  95. [id(DISPID_PCH_HCE__HIGHLIGHTWORDS)] HRESULT HighlightWords( [in] VARIANT window, [in] VARIANT words );
  96. [id(DISPID_PCH_HCE__MESSAGEBOX )] HRESULT MessageBox ( [in] BSTR bstrText , [in] BSTR bstrKind , [out, retval] BSTR *pVal );
  97. [id(DISPID_PCH_HCE__SELECTFOLDER)] HRESULT SelectFolder( [in] BSTR bstrTitle, [in] BSTR bstrDefault, [out, retval] BSTR *pVal );
  98. };
  99. [
  100. object,
  101. uuid(FC7D9E12-3F9E-11d3-93C0-00C04F72DAF7),
  102. dual,
  103. oleautomation,
  104. helpstring("IPCHEvent Interface"),
  105. pointer_default(unique)
  106. ]
  107. interface IPCHEvent : IDispatch
  108. {
  109. //
  110. // Properties
  111. //
  112. [propget, id(DISPID_PCH_E__ACTION )] HRESULT Action ( [out, retval] BSTR * pVal );
  113. [propget, id(DISPID_PCH_E__CANCEL )] HRESULT Cancel ( [out, retval] VARIANT_BOOL * pVal );
  114. [propput, id(DISPID_PCH_E__CANCEL )] HRESULT Cancel ( [in ] VARIANT_BOOL newVal );
  115. [propget, id(DISPID_PCH_E__URL )] HRESULT URL ( [out, retval] BSTR * pVal );
  116. [propget, id(DISPID_PCH_E__FRAME )] HRESULT Frame ( [out, retval] BSTR * pVal );
  117. [propget, id(DISPID_PCH_E__PANEL )] HRESULT Panel ( [out, retval] BSTR * pVal );
  118. [propget, id(DISPID_PCH_E__PLACE )] HRESULT Place ( [out, retval] BSTR * pVal );
  119. [propget, id(DISPID_PCH_E__CURRENTCONTEXT )] HRESULT CurrentContext ( [out, retval] IPCHHelpSessionItem* * pVal );
  120. [propget, id(DISPID_PCH_E__PREVIOUSCONTEXT)] HRESULT PreviousContext( [out, retval] IPCHHelpSessionItem* * pVal );
  121. [propget, id(DISPID_PCH_E__NEXTCONTEXT )] HRESULT NextContext ( [out, retval] IPCHHelpSessionItem* * pVal );
  122. };
  123. [
  124. object,
  125. uuid(FC7D9E13-3F9E-11d3-93C0-00C04F72DAF7),
  126. dual,
  127. oleautomation,
  128. helpstring("IPCHScriptableStream Interface"),
  129. pointer_default(unique)
  130. ]
  131. interface IPCHScriptableStream : IDispatch
  132. {
  133. //
  134. // Properties
  135. //
  136. [propget, id(DISPID_PCH_SS__SIZE)] HRESULT Size( [out, retval] long *plSize );
  137. //
  138. // Methods
  139. //
  140. [id(DISPID_PCH_SS__READ )] HRESULT Read ( [in] long lCount , [out, retval] VARIANT * pvData );
  141. [id(DISPID_PCH_SS__READHEX )] HRESULT ReadHex ( [in] long lCount , [out, retval] BSTR *pbstrData );
  142. [id(DISPID_PCH_SS__WRITE )] HRESULT Write ( [in] long lCount , [in ] VARIANT vData , [out, retval] long *plWritten );
  143. [id(DISPID_PCH_SS__WRITEHEX)] HRESULT WriteHex( [in] long lCount , [in ] BSTR bstrData , [out, retval] long *plWritten );
  144. [id(DISPID_PCH_SS__SEEK )] HRESULT Seek ( [in] long lOffset, [in ] BSTR bstrOrigin, [out, retval] long *plNewPos );
  145. [id(DISPID_PCH_SS__CLOSE )] HRESULT Close ( );
  146. };
  147. [
  148. object,
  149. uuid(FC7D9E16-3F9E-11d3-93C0-00C04F72DAF7),
  150. dual,
  151. oleautomation,
  152. helpstring("IPCHHelpViewerWrapper Interface"),
  153. pointer_default(unique)
  154. ]
  155. interface IPCHHelpViewerWrapper : IDispatch
  156. {
  157. //
  158. // Properties
  159. //
  160. [propget, id(DISPID_PCH_HVW__WEBBROWSER)] HRESULT WebBrowser( [out, retval] IUnknown* *pVal );
  161. //
  162. // Methods
  163. //
  164. [id(DISPID_PCH_HVW__NAVIGATE)] HRESULT Navigate( [in] BSTR bstrURL );
  165. [id(DISPID_PCH_HVW__PRINT )] HRESULT Print ( );
  166. };
  167. ////////////////////////////////////////////////////////////////////////////////
  168. typedef [v1_enum] enum tagTB_MODE {
  169. TB_ALL = 0x00000000, // All text labels.
  170. TB_SELECTED = 0x00000001, // Selected text labels.
  171. TB_NONE = 0x00000002, // No text labels.
  172. } TB_MODE;
  173. [
  174. object,
  175. uuid(FC7D9E18-3F9E-11d3-93C0-00C04F72DAF7),
  176. dual,
  177. oleautomation,
  178. helpstring("IPCHToolBar Interface"),
  179. pointer_default(unique)
  180. ]
  181. interface IPCHToolBar : IDispatch
  182. {
  183. //
  184. // Properties
  185. //
  186. [propget, id(DISPID_PCH_TB__DEFINITION)] HRESULT Definition( [out, retval] BSTR * pVal );
  187. [propput, id(DISPID_PCH_TB__DEFINITION)] HRESULT Definition( [in ] BSTR newVal );
  188. [propget, id(DISPID_PCH_TB__MODE )] HRESULT Mode ( [out, retval] TB_MODE * pVal );
  189. [propput, id(DISPID_PCH_TB__MODE )] HRESULT Mode ( [in ] TB_MODE newVal );
  190. //
  191. // Methods
  192. //
  193. [id(DISPID_PCH_TB__SETSTATE )] HRESULT SetState ( [in] BSTR bstrText, [in] VARIANT_BOOL fEnabled );
  194. [id(DISPID_PCH_TB__SETVISIBILITY)] HRESULT SetVisibility( [in] BSTR bstrText, [in] VARIANT_BOOL fVisible );
  195. };
  196. [
  197. uuid(FC7D9E19-3F9E-11d3-93C0-00C04F72DAF7),
  198. helpstring("DPCHToolBarEvents Interface")
  199. ]
  200. dispinterface DPCHToolBarEvents
  201. {
  202. properties:
  203. methods:
  204. [id(DISPID_PCH_TBE__ONCOMMAND)] HRESULT onCommand( IPCHToolBar* tb, BSTR bstrID );
  205. };
  206. ////////////////////////////////////////////////////////////////////////////////
  207. [
  208. object,
  209. uuid(FC7D9E1A-3F9E-11d3-93C0-00C04F72DAF7),
  210. dual,
  211. oleautomation,
  212. helpstring("IPCHProgressBar Interface"),
  213. pointer_default(unique)
  214. ]
  215. interface IPCHProgressBar : IDispatch
  216. {
  217. //
  218. // Properties
  219. //
  220. [propget, id(DISPID_PCH_PB__LOWLIMIT )] HRESULT LowLimit ( [out, retval] long * pVal );
  221. [propput, id(DISPID_PCH_PB__LOWLIMIT )] HRESULT LowLimit ( [in ] long newVal );
  222. [propget, id(DISPID_PCH_PB__HIGHLIMIT)] HRESULT HighLimit( [out, retval] long * pVal );
  223. [propput, id(DISPID_PCH_PB__HIGHLIMIT)] HRESULT HighLimit( [in ] long newVal );
  224. [propget, id(DISPID_PCH_PB__POS )] HRESULT Pos ( [out, retval] long * pVal );
  225. [propput, id(DISPID_PCH_PB__POS )] HRESULT Pos ( [in ] long newVal );
  226. };
  227. ///////////////////////////////////////////////////////////////////////////////
  228. ///////////////////////////////////////////////////////////////////////////////
  229. typedef [v1_enum] enum tagHS_MODE {
  230. HS_ALL = 0x00000000, // All the pages ssen.
  231. HS_READ = 0x00000001, // Only those seen long enough (X seconds.)
  232. } HS_MODE;
  233. [
  234. object,
  235. uuid(FC7D9E20-3F9E-11d3-93C0-00C04F72DAF7),
  236. dual,
  237. oleautomation,
  238. helpstring("IPCHHelpSession Interface"),
  239. pointer_default(unique)
  240. ]
  241. interface IPCHHelpSession : IDispatch
  242. {
  243. //
  244. // Properties
  245. //
  246. [propget,id(DISPID_PCH_HS__CURRENTCONTEXT)] HRESULT CurrentContext( [out, retval] IPCHHelpSessionItem* *ppHSI );
  247. //
  248. // Methods
  249. //
  250. [id(DISPID_PCH_HS__VISITEDHELPPAGES)] HRESULT VisitedHelpPages( [in] HS_MODE hsMode, [out, retval] IPCHCollection* *ppC );
  251. [id(DISPID_PCH_HS__SETTITLE )] HRESULT SetTitle ( [in] BSTR bstrURL, [in] BSTR bstrTitle );
  252. [id(DISPID_PCH_HS__FORCENAVIGATION )] HRESULT ForceNavigation ( [in] BSTR bstrURL );
  253. [id(DISPID_PCH_HS__IGNORENAVIGATION)] HRESULT IgnoreNavigation( );
  254. [id(DISPID_PCH_HS__ERASENAVIGATION )] HRESULT EraseNavigation ( );
  255. [id(DISPID_PCH_HS__ISNAVIGATING )] HRESULT IsNavigating ( [out, retval] VARIANT_BOOL *pVal );
  256. [id(DISPID_PCH_HS__BACK )] HRESULT Back ( [in] long lLength );
  257. [id(DISPID_PCH_HS__FORWARD )] HRESULT Forward ( [in] long lLength );
  258. [id(DISPID_PCH_HS__ISVALID )] HRESULT IsValid ( [in] long lLength, [out, retval] VARIANT_BOOL *pVal );
  259. [id(DISPID_PCH_HS__NAVIGATE )] HRESULT Navigate ( [in] IPCHHelpSessionItem* pHSI );
  260. [id(DISPID_PCH_HS__CHANGECONTEXT)] HRESULT ChangeContext( [in] BSTR bstrName, [in,optional] VARIANT vInfo, [in,optional] VARIANT vURL );
  261. };
  262. [
  263. object,
  264. uuid(FC7D9E21-3F9E-11d3-93C0-00C04F72DAF7),
  265. dual,
  266. oleautomation,
  267. helpstring("IPCHHelpSessionItem Interface"),
  268. pointer_default(unique)
  269. ]
  270. interface IPCHHelpSessionItem : IDispatch
  271. {
  272. //
  273. // Properties
  274. //
  275. [propget, id(DISPID_PCH_HSI__SKU )] HRESULT SKU ( [out, retval] BSTR *pVal );
  276. [propget, id(DISPID_PCH_HSI__LANGUAGE )] HRESULT Language ( [out, retval] long *pVal );
  277. [propget, id(DISPID_PCH_HSI__URL )] HRESULT URL ( [out, retval] BSTR *pVal );
  278. [propget, id(DISPID_PCH_HSI__TITLE )] HRESULT Title ( [out, retval] BSTR *pVal );
  279. [propget, id(DISPID_PCH_HSI__LASTVISITED)] HRESULT LastVisited( [out, retval] DATE *pVal );
  280. [propget, id(DISPID_PCH_HSI__DURATION )] HRESULT Duration ( [out, retval] DATE *pVal );
  281. [propget, id(DISPID_PCH_HSI__NUMOFHITS )] HRESULT NumOfHits ( [out, retval] long *pVal );
  282. [propget, id(DISPID_PCH_HSI__CONTEXTNAME)] HRESULT ContextName( [out, retval] BSTR *pVal );
  283. [propget, id(DISPID_PCH_HSI__CONTEXTINFO)] HRESULT ContextInfo( [out, retval] BSTR *pVal );
  284. [propget, id(DISPID_PCH_HSI__CONTEXTURL )] HRESULT ContextURL ( [out, retval] BSTR *pVal );
  285. [propget, id(DISPID_PCH_HSI__PROPERTY )] HRESULT Property ( [in] BSTR bstrName, [out, retval] VARIANT *pVal );
  286. [propput, id(DISPID_PCH_HSI__PROPERTY )] HRESULT Property ( [in] BSTR bstrName, [in] VARIANT newVal );
  287. //
  288. // Methods
  289. //
  290. [id(DISPID_PCH_HSI__CHECKPROPERTY)] HRESULT CheckProperty( [in] BSTR bstrName, [out, retval] VARIANT_BOOL *pVal );
  291. };
  292. ////////////////////////////////////////////////////////////////////////////////
  293. [
  294. object,
  295. uuid(FC7D9E30-3F9E-11d3-93C0-00C04F72DAF7),
  296. dual,
  297. oleautomation,
  298. helpstring("IPCHUserSettings2 Interface"),
  299. pointer_default(unique)
  300. ]
  301. interface IPCHUserSettings2 : IPCHUserSettings
  302. {
  303. //
  304. // Properties
  305. //
  306. [propget, id(DISPID_PCH_US2__FAVORITES)] HRESULT Favorites( [out, retval] IPCHFavorites* *pVal );
  307. [propget, id(DISPID_PCH_US2__OPTIONS )] HRESULT Options ( [out, retval] IPCHOptions* *pVal );
  308. [propget, id(DISPID_PCH_US2__SCOPE )] HRESULT Scope ( [out, retval] BSTR *pVal );
  309. [propget, id(DISPID_PCH_US2__ISREMOTESESSION )] HRESULT IsRemoteSession ( [out, retval] VARIANT_BOOL *pVal );
  310. [propget, id(DISPID_PCH_US2__ISTERMINALSERVER )] HRESULT IsTerminalServer ( [out, retval] VARIANT_BOOL *pVal );
  311. [propget, id(DISPID_PCH_US2__ISDESKTOPVERSION )] HRESULT IsDesktopVersion ( [out, retval] VARIANT_BOOL *pVal );
  312. [propget, id(DISPID_PCH_US2__ISADMIN )] HRESULT IsAdmin ( [out, retval] VARIANT_BOOL *pVal );
  313. [propget, id(DISPID_PCH_US2__ISPOWERUSER )] HRESULT IsPowerUser ( [out, retval] VARIANT_BOOL *pVal );
  314. [propget, id(DISPID_PCH_US2__ISSTARTPANELON )] HRESULT IsStartPanelOn ( [out, retval] VARIANT_BOOL *pVal );
  315. [propget, id(DISPID_PCH_US2__ISWEBVIEWBARRICADEON)] HRESULT IsWebViewBarricadeOn( [out, retval] VARIANT_BOOL *pVal );
  316. };
  317. [
  318. object,
  319. uuid(FC7D9E31-3F9E-11d3-93C0-00C04F72DAF7),
  320. dual,
  321. oleautomation,
  322. helpstring("IPCHFavorites Interface"),
  323. pointer_default(unique)
  324. ]
  325. interface IPCHFavorites : IPCHCollection
  326. {
  327. //
  328. // Methods
  329. //
  330. [id(DISPID_PCH_FAV__ISDUPLICATE)] HRESULT IsDuplicate( [in] BSTR bstrURL, [out, retval] VARIANT_BOOL *pfDup );
  331. [id(DISPID_PCH_FAV__ADD )] HRESULT Add ( [in] BSTR bstrURL, [in,optional] VARIANT vTitle , [out, retval] IPCHHelpSessionItem* *ppItem );
  332. [id(DISPID_PCH_FAV__RENAME )] HRESULT Rename ( [in] BSTR bstrTitle, [in] IPCHHelpSessionItem* pItem );
  333. [id(DISPID_PCH_FAV__MOVE )] HRESULT Move ( [in] IPCHHelpSessionItem* pInsertBefore, [in] IPCHHelpSessionItem* pItem );
  334. [id(DISPID_PCH_FAV__DELETE )] HRESULT Delete ( [in] IPCHHelpSessionItem* pItem );
  335. };
  336. typedef [v1_enum] enum tagOPT_FONTSIZE {
  337. OPT_SMALL = 0x00000000,
  338. OPT_MEDIUM = 0x00000001,
  339. OPT_LARGE = 0x00000002,
  340. } OPT_FONTSIZE;
  341. [
  342. object,
  343. uuid(FC7D9E32-3F9E-11d3-93C0-00C04F72DAF7),
  344. dual,
  345. oleautomation,
  346. helpstring("IPCHOptions Interface"),
  347. pointer_default(unique)
  348. ]
  349. interface IPCHOptions : IDispatch
  350. {
  351. //
  352. // Properties
  353. //
  354. [propget, id(DISPID_PCH_O__SHOWFAVORITES )] HRESULT ShowFavorites ( [out, retval] VARIANT_BOOL * pVal );
  355. [propput, id(DISPID_PCH_O__SHOWFAVORITES )] HRESULT ShowFavorites ( [in ] VARIANT_BOOL newVal );
  356. [propget, id(DISPID_PCH_O__SHOWHISTORY )] HRESULT ShowHistory ( [out, retval] VARIANT_BOOL * pVal );
  357. [propput, id(DISPID_PCH_O__SHOWHISTORY )] HRESULT ShowHistory ( [in ] VARIANT_BOOL newVal );
  358. [propget, id(DISPID_PCH_O__FONTSIZE )] HRESULT FontSize ( [out, retval] OPT_FONTSIZE * pVal );
  359. [propput, id(DISPID_PCH_O__FONTSIZE )] HRESULT FontSize ( [in ] OPT_FONTSIZE newVal );
  360. [propget, id(DISPID_PCH_O__TEXTLABELS )] HRESULT TextLabels ( [out, retval] TB_MODE * pVal );
  361. [propput, id(DISPID_PCH_O__TEXTLABELS )] HRESULT TextLabels ( [in ] TB_MODE newVal );
  362. [propget, id(DISPID_PCH_O__DISABLESCRIPTDEBUGGER)] HRESULT DisableScriptDebugger( [out, retval] VARIANT_BOOL * pVal );
  363. [propput, id(DISPID_PCH_O__DISABLESCRIPTDEBUGGER)] HRESULT DisableScriptDebugger( [in ] VARIANT_BOOL newVal );
  364. //
  365. // Methods
  366. //
  367. [id(DISPID_PCH_O__APPLY)] HRESULT Apply();
  368. };
  369. ////////////////////////////////////////////////////////////////////////////////
  370. [
  371. object,
  372. uuid(FC7D9E40-3F9E-11d3-93C0-00C04F72DAF7),
  373. dual,
  374. oleautomation,
  375. helpstring("IPCHContextMenu Interface"),
  376. pointer_default(unique)
  377. ]
  378. interface IPCHContextMenu : IDispatch
  379. {
  380. //
  381. // Methods
  382. //
  383. [id(DISPID_PCH_CM__ADDITEM )] HRESULT AddItem ( [in] BSTR bstrText, [in] BSTR bstrID, [in, optional] VARIANT vFlags );
  384. [id(DISPID_PCH_CM__ADDSEPARATOR)] HRESULT AddSeparator( );
  385. [id(DISPID_PCH_CM__DISPLAY )] HRESULT Display ( [out,retval] BSTR *pVal );
  386. };
  387. ////////////////////////////////////////////////////////////////////////////////
  388. [
  389. object,
  390. uuid(FC7D9E50-3F9E-11d3-93C0-00C04F72DAF7),
  391. dual,
  392. oleautomation,
  393. helpstring("IPCHPrintEngine Interface"),
  394. pointer_default(unique)
  395. ]
  396. interface IPCHPrintEngine : IDispatch
  397. {
  398. //
  399. // Properties
  400. //
  401. [propput, id(DISPID_PCH_PE__ONPROGRESS)] HRESULT onProgress( [in] IDispatch* function );
  402. [propput, id(DISPID_PCH_PE__ONCOMPLETE)] HRESULT onComplete( [in] IDispatch* function );
  403. //
  404. // Methods
  405. //
  406. [id(DISPID_PCH_PE__ADDTOPIC)] HRESULT AddTopic( [in] BSTR bstrURL );
  407. [id(DISPID_PCH_PE__START)] HRESULT Start();
  408. [id(DISPID_PCH_PE__ABORT)] HRESULT Abort();
  409. };
  410. [
  411. uuid(FC7D9E51-3F9E-11d3-93C0-00C04F72DAF7),
  412. helpstring("DPCHPrintEngineEvents Interface")
  413. ]
  414. dispinterface DPCHPrintEngineEvents
  415. {
  416. properties:
  417. methods:
  418. [id(DISPID_PCH_PEE__ONPROGRESS)] HRESULT onProgress( IPCHPrintEngine* pchpe, BSTR bstrURL, long lDone, long lTotal );
  419. [id(DISPID_PCH_PEE__ONCOMPLETE)] HRESULT onComplete( IPCHPrintEngine* pchpe, HRESULT hrRes );
  420. };
  421. // NEW STUFF FOR RTC
  422. ///////////////////////////////////////////////////////////////////////////////
  423. [
  424. object,
  425. uuid(FC7D9E60-3F9E-11d3-93C0-00C04F72DAF7),
  426. dual,
  427. oleautomation,
  428. helpstring("ISAFIntercomClient Interface"),
  429. pointer_default(unique)
  430. ]
  431. interface ISAFIntercomClient : IDispatch
  432. {
  433. //
  434. // Properties
  435. //
  436. ////[propput, id(DISPID_PCH_INC__ONCONNECTIONCOMPLETE)] HRESULT onConnectionComplete( [in] IDispatch* function );
  437. ////[propput, id(DISPID_PCH_INC__ONNEWCONNECTED)] HRESULT onNewConnected ( [in] IDispatch* function );
  438. ////[propput, id(DISPID_PCH_INC__ONDISCONNECTED)] HRESULT onDisconnected ( [in] IDispatch* function );
  439. [propput, id(DISPID_PCH_INC__ONVOICECONNECTED)] HRESULT onVoiceConnected ( [in] IDispatch* function );
  440. [propput, id(DISPID_PCH_INC__ONVOICEDISCONNECTED)] HRESULT onVoiceDisconnected ( [in] IDispatch* function );
  441. [propput, id(DISPID_PCH_INC__ONVOICEDISABLED)] HRESULT onVoiceDisabled ( [in] IDispatch* function );
  442. [propget, id(DISPID_PCH_INC__SAMPLINGRATE)] HRESULT SamplingRate ( [out, retval] LONG * pVal );
  443. [propput, id(DISPID_PCH_INC__SAMPLINGRATE)] HRESULT SamplingRate ( [in] LONG newVal );
  444. //
  445. // Methods
  446. //
  447. [id(DISPID_PCH_INC__CONNECT )] HRESULT Connect( [in] BSTR bstrIP, [in] BSTR bstrKey);
  448. [id(DISPID_PCH_INC__DISCONNECT )] HRESULT Disconnect();
  449. ////[id(DISPID_PCH_INC__STOPVOICE )] HRESULT Stop();
  450. ////[id(DISPID_PCH_INC__STARTVOICE )] HRESULT Start();
  451. [id(DISPID_PCH_INC__RUNSETUPWIZARD)] HRESULT RunSetupWizard();
  452. [id(DISPID_PCH_INC__EXIT )] HRESULT Exit();
  453. };
  454. [
  455. uuid(FC7D9E61-3F9E-11d3-93C0-00C04F72DAF7),
  456. helpstring("DSAFIntercomClientEvents Interface")
  457. ]
  458. dispinterface DSAFIntercomClientEvents
  459. {
  460. properties:
  461. methods:
  462. ////[id(DISPID_PCH_INCE__ONCONNECTIONCOMPLETE)] HRESULT onConnectionComplete( ISAFIntercomClient* safi );
  463. ////[id(DISPID_PCH_INCE__ONNEWCONNECTED )] HRESULT onNewConnected ( ISAFIntercomClient* safi );
  464. ////[id(DISPID_PCH_INCE__ONDISCONNECTED )] HRESULT onDisconnected ( ISAFIntercomClient* safi );
  465. [id(DISPID_PCH_INCE__ONVOICECONNECTED )] HRESULT onVoiceConnected ( ISAFIntercomClient* safi );
  466. [id(DISPID_PCH_INCE__ONVOICEDISCONNECTED )] HRESULT onVoiceDisconnected ( ISAFIntercomClient* safi );
  467. [id(DISPID_PCH_INCE__ONVOICEDISABLED )] HRESULT onVoiceDisabled ( ISAFIntercomClient* safi );
  468. };
  469. ///////////////////////////////////////////////////////////////////////////////
  470. [
  471. object,
  472. uuid(FC7D9E62-3F9E-11d3-93C0-00C04F72DAF7),
  473. dual,
  474. oleautomation,
  475. helpstring("ISAFIntercomServer Interface"),
  476. pointer_default(unique)
  477. ]
  478. interface ISAFIntercomServer : IDispatch
  479. {
  480. //
  481. // Properties
  482. //
  483. ////[propput, id(DISPID_PCH_INS__ONCONNECTIONCOMPLETE)] HRESULT onConnectionComplete( [in] IDispatch* function );
  484. ////[propput, id(DISPID_PCH_INS__ONNEWCONNECTED)] HRESULT onNewConnected ( [in] IDispatch* function );
  485. ////[propput, id(DISPID_PCH_INS__ONDISCONNECTED)] HRESULT onDisconnected ( [in] IDispatch* function );
  486. [propput, id(DISPID_PCH_INS__ONVOICECONNECTED)] HRESULT onVoiceConnected ( [in] IDispatch* function );
  487. [propput, id(DISPID_PCH_INS__ONVOICEDISCONNECTED)] HRESULT onVoiceDisconnected ( [in] IDispatch* function );
  488. [propput, id(DISPID_PCH_INS__ONVOICEDISABLED)] HRESULT onVoiceDisabled ( [in] IDispatch* function );
  489. [propget, id(DISPID_PCH_INS__SAMPLINGRATE)] HRESULT SamplingRate ( [out, retval] LONG * pVal );
  490. [propput, id(DISPID_PCH_INS__SAMPLINGRATE)] HRESULT SamplingRate ( [in ] LONG newVal );
  491. //
  492. // Methods
  493. //
  494. [id(DISPID_PCH_INS__LISTEN )] HRESULT Listen([out, retval] BSTR * pVal);
  495. [id(DISPID_PCH_INS__DISCONNECT )] HRESULT Disconnect();
  496. ////[id(DISPID_PCH_INS__STOPVOICE )] HRESULT Stop();
  497. ////[id(DISPID_PCH_INS__STARTVOICE )] HRESULT Start();
  498. ////[id(DISPID_PCH_INS__RESET )] HRESULT Reset();
  499. [id(DISPID_PCH_INS__RUNSETUPWIZARD)] HRESULT RunSetupWizard();
  500. [id(DISPID_PCH_INS__EXIT )] HRESULT Exit();
  501. };
  502. [
  503. uuid(FC7D9E63-3F9E-11d3-93C0-00C04F72DAF7),
  504. helpstring("DSAFIntercomServerEvents Interface")
  505. ]
  506. dispinterface DSAFIntercomServerEvents
  507. {
  508. properties:
  509. methods:
  510. ////[id(DISPID_PCH_INSE__ONCONNECTIONCOMPLETE)] HRESULT onConnectionComplete( ISAFIntercomServer* safi );
  511. ////[id(DISPID_PCH_INSE__ONNEWCONNECTED )] HRESULT onNewConnected ( ISAFIntercomServer* safi );
  512. ////[id(DISPID_PCH_INSE__ONDISCONNECTED )] HRESULT onDisconnected ( ISAFIntercomServer* safi );
  513. [id(DISPID_PCH_INSE__ONVOICECONNECTED )] HRESULT onVoiceConnected ( ISAFIntercomServer* safi );
  514. [id(DISPID_PCH_INSE__ONVOICEDISCONNECTED )] HRESULT onVoiceDisconnected ( ISAFIntercomServer* safi );
  515. [id(DISPID_PCH_INSE__ONVOICEDISABLED )] HRESULT onVoiceDisabled ( ISAFIntercomServer* safi );
  516. };
  517. ///////////////////////////////////////////////////////////////////////////////
  518. ///////////////////////////////////////////////////////////////////////////////
  519. ///////////////////////////////////////////////////////////////////////////////
  520. [
  521. object,
  522. uuid(FC7D9E70-3F9E-11d3-93C0-00C04F72DAF7),
  523. dual,
  524. oleautomation,
  525. helpstring("IPCHConnectivity Interface"),
  526. pointer_default(unique)
  527. ]
  528. interface IPCHConnectivity: IDispatch
  529. {
  530. //
  531. // Properties
  532. //
  533. [propget, id(DISPID_PCH_C__ISAMODEM )] HRESULT IsAModem ( [out, retval] VARIANT_BOOL *pVal );
  534. [propget, id(DISPID_PCH_C__ISALAN )] HRESULT IsALan ( [out, retval] VARIANT_BOOL *pVal );
  535. [propget, id(DISPID_PCH_C__AUTODIALENABLED)] HRESULT AutoDialEnabled( [out, retval] VARIANT_BOOL *pVal );
  536. [propget, id(DISPID_PCH_C__HASCONNECTOID )] HRESULT HasConnectoid ( [out, retval] VARIANT_BOOL *pVal );
  537. [propget, id(DISPID_PCH_C__IPADDRESSES )] HRESULT IPAddresses ( [out, retval] BSTR *pVal );
  538. //
  539. // Methods
  540. //
  541. [id(DISPID_PCH_C__CREATEOBJECT_CONNECTIONCHECK)] HRESULT CreateObject_ConnectionCheck( [out, retval] IPCHConnectionCheck* *ppCB );
  542. [id(DISPID_PCH_C__NETWORKALIVE )] HRESULT NetworkAlive ( [out, retval] VARIANT_BOOL *pVal );
  543. [id(DISPID_PCH_C__DESTINATIONREACHABLE)] HRESULT DestinationReachable( [in] BSTR bstrURL, [out, retval] VARIANT_BOOL *pVal );
  544. [id(DISPID_PCH_C__AUTODIAL )] HRESULT AutoDial ( [in] VARIANT_BOOL bUnattended );
  545. [id(DISPID_PCH_C__AUTODIALHANGUP)] HRESULT AutoDialHangup( );
  546. [id(DISPID_PCH_C__NAVIGATEONLINE)] HRESULT NavigateOnline( [in ] BSTR bstrTargetURL ,
  547. [in ] BSTR bstrTopicTitle ,
  548. [in ] BSTR bstrTopicIntro ,
  549. [in,optional] VARIANT vOfflineURL );
  550. };
  551. ////////////////////////////////////////
  552. typedef [v1_enum] enum tagCN_STATUS {
  553. CN_NOTACTIVE = 0x00000000,
  554. CN_CHECKING = 0x00000001,
  555. CN_IDLE = 0x00000002,
  556. } CN_STATUS;
  557. typedef [v1_enum] enum tagCN_URL_STATUS {
  558. CN_URL_INVALID = 0x00000000,
  559. CN_URL_NOTPROCESSED = 0x00000001,
  560. CN_URL_CHECKING = 0x00000002,
  561. CN_URL_MALFORMED = 0x00000003,
  562. CN_URL_ALIVE = 0x00000004,
  563. CN_URL_UNREACHABLE = 0x00000005,
  564. CN_URL_ABORTED = 0x00000006,
  565. } CN_URL_STATUS;
  566. [
  567. object,
  568. uuid(FC7D9E71-3F9E-11d3-93C0-00C04F72DAF7),
  569. dual,
  570. oleautomation,
  571. helpstring("IPCHConnectionCheck Interface"),
  572. pointer_default(unique)
  573. ]
  574. interface IPCHConnectionCheck: IDispatch
  575. {
  576. //
  577. // Properties
  578. //
  579. [propput, id(DISPID_PCH_CN__ONCHECKDONE )] HRESULT onCheckDone ( [in] IDispatch* function );
  580. [propput, id(DISPID_PCH_CN__ONSTATUSCHANGE)] HRESULT onStatusChange( [in] IDispatch* function );
  581. [propget, id(DISPID_PCH_CN__STATUS )] HRESULT Status ( [out, retval] CN_STATUS *pVal );
  582. //
  583. // Methods
  584. //
  585. [id(DISPID_PCH_CN__STARTURLCHECK)] HRESULT StartUrlCheck( [in] BSTR bstrURL, [in] VARIANT vCtx );
  586. [id(DISPID_PCH_CN__ABORT )] HRESULT Abort ( );
  587. };
  588. [
  589. uuid(FC7D9E72-3F9E-11d3-93C0-00C04F72DAF7),
  590. helpstring("DPCHConnectionCheckEvents Interface")
  591. ]
  592. dispinterface DPCHConnectionCheckEvents
  593. {
  594. properties:
  595. methods:
  596. [id(DISPID_PCH_CNE__ONCHECKDONE )] HRESULT onCheckDone ( IPCHConnectionCheck* obj, CN_URL_STATUS lStatus, HRESULT hr, BSTR bstrURL, VARIANT vCtx );
  597. [id(DISPID_PCH_CNE__ONSTATUSCHANGE)] HRESULT onStatusChange( IPCHConnectionCheck* obj, CN_STATUS lStatus );
  598. };
  599. ///////////////////////////////////////////////////////////////////////////////
  600. ///////////////////////////////////////////////////////////////////////////////
  601. ///////////////////////////////////////////////////////////////////////////////
  602. [
  603. object,
  604. uuid(FC7D9E80-3F9E-11d3-93C0-00C04F72DAF7),
  605. dual,
  606. oleautomation,
  607. helpstring("IPCHTextHelpers Interface"),
  608. pointer_default(unique)
  609. ]
  610. interface IPCHTextHelpers : IDispatch
  611. {
  612. //
  613. // Methods
  614. //
  615. [id(DISPID_PCH_TH__QUOTEESCAPE)] HRESULT QuoteEscape( [in] BSTR bstrText, [in,optional] VARIANT vQuote , [out, retval] BSTR *pVal );
  616. [id(DISPID_PCH_TH__URLUNESCAPE)] HRESULT URLUnescape( [in] BSTR bstrText, [in,optional] VARIANT vAsQueryString, [out, retval] BSTR *pVal );
  617. [id(DISPID_PCH_TH__URLESCAPE )] HRESULT URLEscape ( [in] BSTR bstrText, [in,optional] VARIANT vAsQueryString, [out, retval] BSTR *pVal );
  618. [id(DISPID_PCH_TH__HTMLESCAPE )] HRESULT HTMLEscape ( [in] BSTR bstrText, [out, retval] BSTR *pVal );
  619. [id(DISPID_PCH_TH__PARSEURL )] HRESULT ParseURL ( [in] BSTR bstrURL, [out, retval] IPCHParsedURL* *pVal );
  620. [id(DISPID_PCH_TH__GETLCIDDISPLAYSTRING)] HRESULT GetLCIDDisplayString( [in] long lLCID , [out, retval] BSTR *pVal );
  621. };
  622. [
  623. object,
  624. uuid(FC7D9E81-3F9E-11d3-93C0-00C04F72DAF7),
  625. dual,
  626. oleautomation,
  627. helpstring("IPCHParsedURL Interface"),
  628. pointer_default(unique)
  629. ]
  630. interface IPCHParsedURL : IDispatch
  631. {
  632. //
  633. // Properties
  634. //
  635. [propget, id(DISPID_PCH_PU__BASEPART )] HRESULT BasePart ( [out, retval] BSTR * pVal );
  636. [propput, id(DISPID_PCH_PU__BASEPART )] HRESULT BasePart ( [in ] BSTR newVal );
  637. [propget, id(DISPID_PCH_PU__QUERYPARAMETERS)] HRESULT QueryParameters( [out, retval] VARIANT * pVal );
  638. //
  639. // Methods
  640. //
  641. [id(DISPID_PCH_PU__GETQUERYPARAMETER )] HRESULT GetQueryParameter ( [in] BSTR bstrName, [out, retval] VARIANT* pvValue );
  642. [id(DISPID_PCH_PU__SETQUERYPARAMETER )] HRESULT SetQueryParameter ( [in] BSTR bstrName, [in ] BSTR bstrValue );
  643. [id(DISPID_PCH_PU__DELETEQUERYPARAMETER)] HRESULT DeleteQueryParameter( [in] BSTR bstrName );
  644. [id(DISPID_PCH_PU__BUILDFULLURL)] HRESULT BuildFullURL( [out, retval] BSTR *pVal );
  645. };