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.

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