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.

199 lines
5.8 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Copyright 1995-1998 Microsoft Corporation. All Rights Reserved.
  4. //
  5. // Contents: Url History interfaces
  6. //
  7. //----------------------------------------------------------------------------
  8. cpp_quote("//=--------------------------------------------------------------------------=")
  9. cpp_quote("// UrlHist.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("// Url History Interfaces.")
  23. cpp_quote("")
  24. import "objidl.idl";
  25. import "oleidl.idl";
  26. import "oaidl.idl";
  27. import "docobj.idl";
  28. import "servprov.idl";
  29. interface IEnumSTATURL;
  30. interface IUrlHistoryStg;
  31. #pragma midl_echo("#define STATURL_QUERYFLAG_ISCACHED 0x00010000")
  32. #pragma midl_echo("#define STATURL_QUERYFLAG_NOURL 0x00020000")
  33. #pragma midl_echo("#define STATURL_QUERYFLAG_NOTITLE 0x00040000")
  34. #pragma midl_echo("#define STATURL_QUERYFLAG_TOPLEVEL 0x00080000")
  35. #pragma midl_echo("#define STATURLFLAG_ISCACHED 0x00000001")
  36. #pragma midl_echo("#define STATURLFLAG_ISTOPLEVEL 0x00000002")
  37. typedef enum _ADDURL_FLAG
  38. {
  39. ADDURL_FIRST = 0,
  40. ADDURL_ADDTOHISTORYANDCACHE = 0,
  41. ADDURL_ADDTOCACHE = 1,
  42. ADDURL_Max = 2147483647L
  43. } ADDURL_FLAG;
  44. cpp_quote("")
  45. cpp_quote("////////////////////////////////////////////////////////////////////////////")
  46. cpp_quote("// Interface Definitions")
  47. //+---------------------------------------------------------------------------
  48. //
  49. // Copyright (C) Microsoft Corporation, 1995-1998.
  50. //
  51. // Contents: IEnumSTATURL interface definition
  52. //
  53. //----------------------------------------------------------------------------
  54. cpp_quote("#ifndef _LPENUMSTATURL_DEFINED")
  55. cpp_quote("#define _LPENUMSTATURL_DEFINED")
  56. [
  57. object,
  58. uuid(3C374A42-BAE4-11CF-BF7D-00AA006946EE),
  59. pointer_default(unique)
  60. ]
  61. interface IEnumSTATURL : IUnknown
  62. {
  63. typedef [unique] IEnumSTATURL *LPENUMSTATURL;
  64. typedef struct _STATURL
  65. {
  66. DWORD cbSize;
  67. LPWSTR pwcsUrl;
  68. LPWSTR pwcsTitle;
  69. FILETIME ftLastVisited;
  70. FILETIME ftLastUpdated;
  71. FILETIME ftExpires;
  72. DWORD dwFlags;
  73. } STATURL, *LPSTATURL;
  74. HRESULT Next (
  75. [in] ULONG celt,
  76. [in, out] LPSTATURL rgelt,
  77. [in, out] ULONG * pceltFetched);
  78. HRESULT Skip (
  79. [in] ULONG celt) ;
  80. HRESULT Reset (void) ;
  81. HRESULT Clone(
  82. [out] IEnumSTATURL ** ppenum) ;
  83. HRESULT SetFilter (
  84. [in] LPCOLESTR poszFilter,
  85. [in] DWORD dwFlags);
  86. }
  87. cpp_quote("#endif")
  88. //+---------------------------------------------------------------------------
  89. //
  90. // Copyright (C) Microsoft Corporation, 1995-1998.
  91. //
  92. // Contents: IUrlHistoryStg interface definition
  93. //
  94. //----------------------------------------------------------------------------
  95. cpp_quote("#ifndef _LPURLHISTORYSTG_DEFINED")
  96. cpp_quote("#define _LPURLHISTORYSTG_DEFINED")
  97. [
  98. object,
  99. uuid(3C374A41-BAE4-11CF-BF7D-00AA006946EE),
  100. pointer_default(unique)
  101. ]
  102. interface IUrlHistoryStg : IUnknown
  103. {
  104. typedef [unique] IUrlHistoryStg *LPURLHISTORYSTG;
  105. HRESULT AddUrl (
  106. [in] LPCOLESTR pocsUrl,
  107. [in, unique] LPCOLESTR pocsTitle,
  108. [in] DWORD dwFlags);
  109. HRESULT DeleteUrl(
  110. [in] LPCOLESTR pocsUrl,
  111. [in] DWORD dwFlags) ;
  112. HRESULT QueryUrl (
  113. [in] LPCOLESTR pocsUrl,
  114. [in] DWORD dwFlags,
  115. [in, out, unique] LPSTATURL lpSTATURL) ;
  116. HRESULT BindToObject (
  117. [in] LPCOLESTR pocsUrl,
  118. [in] REFIID riid,
  119. [out, iid_is(riid)] void **ppvOut) ;
  120. HRESULT EnumUrls (
  121. [out] IEnumSTATURL **ppEnum) ;
  122. }
  123. cpp_quote("#endif")
  124. //+---------------------------------------------------------------------------
  125. //
  126. // Copyright (C) Microsoft Corporation, 1995-1998.
  127. //
  128. // Contents: IUrlHistoryStg2 interface definition
  129. //
  130. //----------------------------------------------------------------------------
  131. cpp_quote("#ifndef _LPURLHISTORYSTG2_DEFINED")
  132. cpp_quote("#define _LPURLHISTORYSTG2_DEFINED")
  133. [
  134. object,
  135. uuid(AFA0DC11-C313-11d0-831A-00C04FD5AE38),
  136. pointer_default(unique)
  137. ]
  138. interface IUrlHistoryStg2 : IUrlHistoryStg
  139. {
  140. typedef [unique] IUrlHistoryStg2 *LPURLHISTORYSTG2;
  141. HRESULT AddUrlAndNotify (
  142. [in] LPCOLESTR pocsUrl,
  143. [in,unique] LPCOLESTR pocsTitle,
  144. [in] DWORD dwFlags,
  145. [in] BOOL fWriteHistory,
  146. [in] IOleCommandTarget *poctNotify,
  147. [in, unique] IUnknown *punkISFolder );
  148. HRESULT ClearHistory();
  149. }
  150. cpp_quote("#endif")
  151. //+---------------------------------------------------------------------------
  152. //
  153. // Copyright (C) Microsoft Corporation, 1995-1998.
  154. //
  155. // Contents: IUrlHistoryNotify interface definition
  156. //
  157. //----------------------------------------------------------------------------
  158. cpp_quote("#ifndef _LPURLHISTORYNOTIFY_DEFINED")
  159. cpp_quote("#define _LPURLHISTORYNOTIFY_DEFINED")
  160. [
  161. object,
  162. uuid(BC40BEC1-C493-11d0-831B-00C04FD5AE38),
  163. pointer_default(unique)
  164. ]
  165. interface IUrlHistoryNotify : IOleCommandTarget
  166. {
  167. typedef [unique] IUrlHistoryNotify *LPURLHISTORYNOTIFY;
  168. }
  169. cpp_quote("#endif")