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.

174 lines
4.7 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("// HTIframe.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 ITargetFrame2 Interfaces.")
  23. cpp_quote("")
  24. import "objidl.idl";
  25. import "oleidl.idl";
  26. interface ITargetFrame2;
  27. interface ITargetContainer;
  28. cpp_quote("EXTERN_C const IID IID_ITargetFrame2;")
  29. cpp_quote("EXTERN_C const IID IID_ITargetContainer;")
  30. //+---------------------------------------------------------------------------
  31. //
  32. // Copyright (C) Microsoft Corporation, 1995-1998.
  33. //
  34. // Contents: ITargetFrame interface definition
  35. //
  36. //----------------------------------------------------------------------------
  37. cpp_quote("#ifndef _LPTARGETFRAME2_DEFINED")
  38. cpp_quote("#define _LPTARGETFRAME2_DEFINED")
  39. cpp_quote("#define TF_NAVIGATE 0x7FAEABAC")
  40. cpp_quote("#define TARGET_NOTIFY_OBJECT_NAME L\"863a99a0-21bc-11d0-82b4-00a0c90c29c5\"")
  41. [
  42. object,
  43. uuid(863a99a0-21bc-11d0-82b4-00a0c90c29c5),
  44. pointer_default(unique)
  45. ]
  46. interface ITargetNotify: IUnknown
  47. {
  48. typedef [unique] ITargetNotify *LPTARGETNOTIFY;
  49. HRESULT OnCreate(
  50. [in] IUnknown *pUnkDestination,
  51. [in] ULONG cbCookie);
  52. HRESULT OnReuse(
  53. [in] IUnknown *pUnkDestination);
  54. }
  55. [
  56. object,
  57. uuid(3050f6b1-98b5-11cf-bb82-00aa00bdce0b),
  58. pointer_default(unique)
  59. ]
  60. interface ITargetNotify2: ITargetNotify
  61. {
  62. typedef [unique] ITargetNotify2 *LPTARGETNOTIFY2;
  63. HRESULT GetOptionString(
  64. [in,out] BSTR * pbstrOptions);
  65. }
  66. [
  67. object,
  68. uuid(86D52E11-94A8-11d0-82AF-00C04FD5AE38),
  69. pointer_default(unique)
  70. ]
  71. interface ITargetFrame2: IUnknown
  72. {
  73. typedef [unique] ITargetFrame2 *LPTARGETFRAME2;
  74. typedef enum
  75. {
  76. FINDFRAME_NONE = 0,
  77. FINDFRAME_JUSTTESTEXISTENCE = 1,
  78. FINDFRAME_INTERNAL = 0x80000000,
  79. } FINDFRAME_FLAGS;
  80. // values indicating frame layout options
  81. typedef enum
  82. {
  83. FRAMEOPTIONS_SCROLL_YES = 0x00000001,
  84. FRAMEOPTIONS_SCROLL_NO = 0x00000002,
  85. FRAMEOPTIONS_SCROLL_AUTO = 0x00000004,
  86. FRAMEOPTIONS_NORESIZE = 0x00000008,
  87. FRAMEOPTIONS_NO3DBORDER = 0x00000010,
  88. FRAMEOPTIONS_DESKTOP = 0x00000020,
  89. FRAMEOPTIONS_BROWSERBAND = 0x00000040,
  90. } FRAMEOPTIONS_FLAGS;
  91. HRESULT SetFrameName(
  92. [in] LPCWSTR pszFrameName);
  93. HRESULT GetFrameName(
  94. [out] LPWSTR *ppszFrameName);
  95. HRESULT GetParentFrame(
  96. [out] IUnknown **ppunkParent);
  97. HRESULT SetFrameSrc(
  98. [in] LPCWSTR pszFrameSrc);
  99. HRESULT GetFrameSrc(
  100. [out] LPWSTR *ppszFrameSrc);
  101. HRESULT GetFramesContainer(
  102. [out] IOleContainer **ppContainer);
  103. HRESULT SetFrameOptions(
  104. [in] DWORD dwFlags);
  105. HRESULT GetFrameOptions(
  106. [out] DWORD *pdwFlags);
  107. HRESULT SetFrameMargins(
  108. [in] DWORD dwWidth,
  109. [in] DWORD dwHeight);
  110. HRESULT GetFrameMargins(
  111. [out] DWORD *pdwWidth,
  112. [out] DWORD *pdwHeight);
  113. HRESULT FindFrame(
  114. [in,unique] LPCWSTR pszTargetName,
  115. [in] DWORD dwFlags,
  116. [out] IUnknown **ppunkTargetFrame);
  117. HRESULT GetTargetAlias(
  118. [in,unique] LPCWSTR pszTargetName,
  119. [out] LPWSTR *ppszTargetAlias);
  120. }
  121. [
  122. object,
  123. uuid(7847EC01-2BEC-11d0-82B4-00A0C90C29C5),
  124. pointer_default(unique)
  125. ]
  126. interface ITargetContainer: IUnknown
  127. {
  128. typedef [unique] ITargetContainer *LPTARGETCONTAINER;
  129. HRESULT GetFrameUrl(
  130. [out] LPWSTR *ppszFrameSrc);
  131. HRESULT GetFramesContainer(
  132. [out] IOleContainer **ppContainer);
  133. }
  134. cpp_quote("#endif")