home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / urlhist.idl < prev    next >
Text File  |  1998-04-25  |  6KB  |  190 lines

  1. //+---------------------------------------------------------------------------
  2. //
  3. //  Copyright 1995 - 1998 Microsoft Corporation. All Rights Reserved.
  4. //
  5. //  Contents:   Url History interfaces
  6. //
  7. //----------------------------------------------------------------------------
  8.  
  9. cpp_quote("//=--------------------------------------------------------------------------=")
  10. cpp_quote("// UrlHist.h")
  11. cpp_quote("//=--------------------------------------------------------------------------=")
  12. cpp_quote("// (C) Copyright 1995 - 1998 Microsoft Corporation.  All Rights Reserved.")
  13. cpp_quote("//")
  14. cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF")
  15. cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO")
  16. cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A")
  17. cpp_quote("// PARTICULAR PURPOSE.")
  18. cpp_quote("//=--------------------------------------------------------------------------=")
  19. cpp_quote("")
  20. cpp_quote("#pragma comment(lib,\"uuid.lib\")")
  21. cpp_quote("")
  22. cpp_quote("//---------------------------------------------------------------------------=")
  23. cpp_quote("// Url History Interfaces.")
  24. cpp_quote("")
  25.  
  26. import "objidl.idl";
  27. import "oleidl.idl";
  28. import "oaidl.idl";
  29. import "docobj.idl";
  30.  
  31. import "servprov.idl";
  32.  
  33. interface IEnumSTATURL;
  34. interface IUrlHistoryStg;
  35.  
  36. #pragma midl_echo("#define STATURL_QUERYFLAG_ISCACHED        0x00010000")
  37. #pragma midl_echo("#define STATURL_QUERYFLAG_NOURL              0x00020000")
  38. #pragma midl_echo("#define STATURL_QUERYFLAG_NOTITLE            0x00040000")
  39. #pragma midl_echo("#define STATURLFLAG_ISCACHED        0x00000001")
  40.  
  41. cpp_quote("")
  42. cpp_quote("////////////////////////////////////////////////////////////////////////////")
  43. cpp_quote("//  Interface Definitions")
  44.  
  45. //+---------------------------------------------------------------------------
  46. //
  47. //  Copyright (C) Microsoft Corporation, 1995-1998.
  48. //
  49. //  Contents:    IEnumSTATURL interface definition
  50. //
  51. //----------------------------------------------------------------------------
  52. cpp_quote("#ifndef _LPENUMSTATURL_DEFINED")
  53. cpp_quote("#define _LPENUMSTATURL_DEFINED")
  54. [
  55.     object,
  56.     uuid(3C374A42-BAE4-11CF-BF7D-00AA006946EE),
  57.     pointer_default(unique)
  58. ]
  59. interface IEnumSTATURL : IUnknown
  60. {
  61.     typedef [unique] IEnumSTATURL *LPENUMSTATURL;
  62.     
  63.     typedef struct _STATURL
  64.     {
  65.         DWORD cbSize;
  66.         LPWSTR pwcsUrl;
  67.         LPWSTR pwcsTitle;
  68.         FILETIME ftLastVisited;
  69.         FILETIME ftLastUpdated;
  70.         FILETIME ftExpires;
  71.         DWORD dwFlags;
  72.     } STATURL, *LPSTATURL;
  73.  
  74.  
  75.     HRESULT Next (
  76.         [in] ULONG celt,
  77.         [in, out] LPSTATURL rgelt,
  78.         [in, out] ULONG * pceltFetched);
  79.  
  80.     HRESULT Skip (
  81.         [in] ULONG celt) ;
  82.  
  83.     HRESULT Reset (void) ;
  84.  
  85.     HRESULT Clone(
  86.         [out] IEnumSTATURL ** ppenum) ;
  87.  
  88.  
  89.     HRESULT SetFilter (
  90.         [in] LPCOLESTR poszFilter,
  91.         [in] DWORD dwFlags);
  92. }
  93. cpp_quote("#endif")
  94.  
  95.  
  96. //+---------------------------------------------------------------------------
  97. //
  98. //  Copyright (C) Microsoft Corporation, 1995-1998.
  99. //
  100. //  Contents:    IUrlHistoryStg interface definition
  101. //
  102. //----------------------------------------------------------------------------
  103. cpp_quote("#ifndef _LPURLHISTORYSTG_DEFINED")
  104. cpp_quote("#define _LPURLHISTORYSTG_DEFINED")
  105. [
  106.     object,
  107.     uuid(3C374A41-BAE4-11CF-BF7D-00AA006946EE),
  108.     pointer_default(unique)
  109. ]
  110. interface IUrlHistoryStg : IUnknown
  111. {
  112.     typedef [unique] IUrlHistoryStg *LPURLHISTORYSTG;
  113.     
  114.     HRESULT AddUrl (
  115.         [in] LPCOLESTR pocsUrl,
  116.         [in, unique] LPCOLESTR pocsTitle,
  117.         [in] DWORD dwFlags);
  118.  
  119.     HRESULT DeleteUrl(
  120.         [in] LPCOLESTR pocsUrl,
  121.         [in] DWORD dwFlags) ;
  122.  
  123.     HRESULT QueryUrl (
  124.         [in] LPCOLESTR pocsUrl,
  125.         [in] DWORD dwFlags,
  126.         [in, out, unique] LPSTATURL lpSTATURL) ;
  127.     
  128.     HRESULT BindToObject (
  129.         [in] LPCOLESTR pocsUrl,
  130.         [in] REFIID riid,
  131.         [out, iid_is(riid)] void **ppvOut) ;
  132.  
  133.     HRESULT EnumUrls (
  134.         [out] IEnumSTATURL **ppEnum) ;
  135.     
  136. }
  137. cpp_quote("#endif")
  138.  
  139. //+---------------------------------------------------------------------------
  140. //
  141. //  Copyright (C) Microsoft Corporation, 1995-1998.
  142. //
  143. //  Contents:    IUrlHistoryStg2 interface definition
  144. //
  145. //----------------------------------------------------------------------------
  146. cpp_quote("#ifndef _LPURLHISTORYSTG2_DEFINED")
  147. cpp_quote("#define _LPURLHISTORYSTG2_DEFINED")
  148. [
  149.     object,
  150.     uuid(AFA0DC11-C313-11d0-831A-00C04FD5AE38),
  151.     pointer_default(unique)
  152. ]
  153. interface IUrlHistoryStg2 : IUrlHistoryStg
  154. {
  155.     typedef [unique] IUrlHistoryStg2 *LPURLHISTORYSTG2;
  156.  
  157.     
  158.     HRESULT AddUrlAndNotify (
  159.         [in] LPCOLESTR pocsUrl,
  160.         [in,unique] LPCOLESTR pocsTitle,
  161.         [in] DWORD dwFlags,
  162.         [in] BOOL fWriteHistory,
  163.         [in] IOleCommandTarget *poctNotify,
  164.         [in, unique] IUnknown *punkISFolder );
  165.  
  166.     HRESULT ClearHistory();
  167.  
  168. }
  169. cpp_quote("#endif")
  170.  
  171. //+---------------------------------------------------------------------------
  172. //
  173. //  Copyright (C) Microsoft Corporation, 1995-1998.
  174. //
  175. //  Contents:    IUrlHistoryNotify interface definition
  176. //
  177. //----------------------------------------------------------------------------
  178. cpp_quote("#ifndef _LPURLHISTORYNOTIFY_DEFINED")
  179. cpp_quote("#define _LPURLHISTORYNOTIFY_DEFINED")
  180. [
  181.     object,
  182.     uuid(BC40BEC1-C493-11d0-831B-00C04FD5AE38),
  183.     pointer_default(unique)
  184. ]
  185. interface IUrlHistoryNotify : IOleCommandTarget
  186. {
  187.     typedef [unique] IUrlHistoryNotify *LPURLHISTORYNOTIFY;
  188. }
  189. cpp_quote("#endif")
  190.