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.

212 lines
5.6 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Copyright 1995-1998 Microsoft Corporation. All Rights Reserved.
  4. //
  5. // Contents: OLE Hyperlinking interfaces
  6. //
  7. //----------------------------------------------------------------------------
  8. cpp_quote("//=--------------------------------------------------------------------------=")
  9. cpp_quote("// HTIface.h")
  10. cpp_quote("//=--------------------------------------------------------------------------=")
  11. cpp_quote("// (C) Copyright 1995-1998 Microsoft Corporation. All Rights Reserved.")
  12. cpp_quote("//")
  13. cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF")
  14. cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO")
  15. cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A")
  16. cpp_quote("// PARTICULAR PURPOSE.")
  17. cpp_quote("//=--------------------------------------------------------------------------=")
  18. cpp_quote("")
  19. cpp_quote("#pragma comment(lib,\"uuid.lib\")")
  20. cpp_quote("")
  21. cpp_quote("//--------------------------------------------------------------------------")
  22. cpp_quote("// OLE Hyperlinking ITargetFrame Interfaces.")
  23. cpp_quote("")
  24. cpp_quote("#ifndef _LPTARGETFRAME2_DEFINED ")
  25. cpp_quote("#include \"htiframe.h\" ")
  26. cpp_quote("#endif // _LPTARGETFRAME2_DEFINED ")
  27. import "objidl.idl";
  28. import "oleidl.idl";
  29. import "urlmon.idl";
  30. interface ITargetFrame;
  31. interface ITargetEmbedding;
  32. cpp_quote("EXTERN_C const IID IID_ITargetFrame;")
  33. cpp_quote("EXTERN_C const IID IID_ITargetEmbedding;")
  34. cpp_quote("EXTERN_C const IID IID_ITargetFramePriv;")
  35. //+---------------------------------------------------------------------------
  36. //
  37. // Copyright (C) Microsoft Corporation, 1995-1998.
  38. //
  39. // Contents: ITargetFrame interface definition
  40. //
  41. //----------------------------------------------------------------------------
  42. cpp_quote("#ifndef _LPTARGETFRAME_DEFINED")
  43. cpp_quote("#define _LPTARGETFRAME_DEFINED")
  44. [
  45. object,
  46. uuid(d5f78c80-5252-11cf-90fa-00AA0042106e),
  47. pointer_default(unique)
  48. ]
  49. interface ITargetFrame: IUnknown
  50. {
  51. typedef [unique] ITargetFrame *LPTARGETFRAME;
  52. typedef enum
  53. {
  54. /* Add document to history. */
  55. NAVIGATEFRAME_FL_RECORD = 0x0001,
  56. /* Post data. */
  57. NAVIGATEFRAME_FL_POST = 0x0002,
  58. /* Do not retrieve document from cache. */
  59. NAVIGATEFRAME_FL_NO_DOC_CACHE = 0x0004,
  60. /* Do not retrieve images from cache. */
  61. NAVIGATEFRAME_FL_NO_IMAGE_CACHE = 0x0008,
  62. /* Retrieve page from cache even if marked "Authorization failed"
  63. * This is overridden by NAVIGATEFRAME_FL_NO_DOC_CACHE. */
  64. NAVIGATEFRAME_FL_AUTH_FAIL_CACHE_OK = 0x0010,
  65. /* We are sending information contained on a for
  66. * method of sending can either be POST or GET */
  67. NAVIGATEFRAME_FL_SENDING_FROM_FORM = 0x0020,
  68. /* no funny stuff here, if this bit it set we mean business,
  69. we are going to be sending a form */
  70. NAVIGATEFRAME_FL_REALLY_SENDING_FROM_FORM = 0x0040,
  71. /* flag combinations */
  72. } NAVIGATEFRAME_FLAGS;
  73. typedef struct tagNavigateData
  74. {
  75. ULONG ulTarget;
  76. ULONG ulURL;
  77. ULONG ulRefURL;
  78. ULONG ulPostData;
  79. DWORD dwFlags;
  80. } NAVIGATEDATA;
  81. HRESULT SetFrameName(
  82. [in] LPCWSTR pszFrameName);
  83. HRESULT GetFrameName(
  84. [out] LPWSTR *ppszFrameName);
  85. HRESULT GetParentFrame(
  86. [out] IUnknown **ppunkParent);
  87. HRESULT FindFrame(
  88. [in] LPCWSTR pszTargetName,
  89. [in] IUnknown *ppunkContextFrame,
  90. [in] DWORD dwFlags,
  91. [out] IUnknown **ppunkTargetFrame);
  92. HRESULT SetFrameSrc(
  93. [in] LPCWSTR pszFrameSrc);
  94. HRESULT GetFrameSrc(
  95. [out] LPWSTR *ppszFrameSrc);
  96. HRESULT GetFramesContainer(
  97. [out] IOleContainer **ppContainer);
  98. HRESULT SetFrameOptions(
  99. [in] DWORD dwFlags);
  100. HRESULT GetFrameOptions(
  101. [out] DWORD *pdwFlags);
  102. HRESULT SetFrameMargins(
  103. [in] DWORD dwWidth,
  104. [in] DWORD dwHeight);
  105. HRESULT GetFrameMargins(
  106. [out] DWORD *pdwWidth,
  107. [out] DWORD *pdwHeight);
  108. HRESULT RemoteNavigate(
  109. [in] ULONG cLength,
  110. [in, size_is(cLength)] ULONG *pulData);
  111. HRESULT OnChildFrameActivate(
  112. [in] IUnknown * pUnkChildFrame);
  113. HRESULT OnChildFrameDeactivate(
  114. [in] IUnknown * pUnkChildFrame);
  115. }
  116. [
  117. object,
  118. uuid(548793C0-9E74-11cf-9655-00A0C9034923),
  119. pointer_default(unique)
  120. ]
  121. interface ITargetEmbedding: IUnknown
  122. {
  123. typedef [unique] ITargetEmbedding *LPTARGETEMBEDDING;
  124. HRESULT GetTargetFrame(
  125. [out] ITargetFrame **ppTargetFrame);
  126. }
  127. [
  128. object,
  129. uuid(9216E421-2BF5-11d0-82B4-00A0C90C29C5),
  130. pointer_default(unique)
  131. ]
  132. interface ITargetFramePriv: IUnknown
  133. {
  134. typedef [unique] ITargetFramePriv *LPTARGETFRAMEPRIV;
  135. HRESULT FindFrameDownwards(
  136. [in] LPCWSTR pszTargetName,
  137. [in] DWORD dwFlags,
  138. [out] IUnknown **ppunkTargetFrame);
  139. HRESULT FindFrameInContext(
  140. [in] LPCWSTR pszTargetName,
  141. [in] IUnknown *punkContextFrame,
  142. [in] DWORD dwFlags,
  143. [out] IUnknown **ppunkTargetFrame);
  144. HRESULT OnChildFrameActivate(
  145. [in] IUnknown * pUnkChildFrame);
  146. HRESULT OnChildFrameDeactivate(
  147. [in] IUnknown * pUnkChildFrame);
  148. HRESULT NavigateHack(
  149. [in] DWORD grfHLNF,
  150. [in, unique] LPBC pbc,
  151. [in, unique] IBindStatusCallback * pibsc,
  152. [in, unique] LPCWSTR pszTargetName,
  153. [in] LPCWSTR pszUrl,
  154. [in, unique] LPCWSTR pszLocation);
  155. HRESULT FindBrowserByIndex(
  156. [in] DWORD dwID,
  157. [out] IUnknown **ppunkBrowser);
  158. }
  159. cpp_quote("#endif")