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.

91 lines
3.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992-1998.
  5. //
  6. // File: dwnnot.idl
  7. //
  8. // Contents: IDownloadNotify interfaces
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 08-07-97 DBau (David Bau) Created
  15. //
  16. //----------------------------------------------------------------------------
  17. cpp_quote("//=--------------------------------------------------------------------------=")
  18. cpp_quote("// dwnnot.h")
  19. cpp_quote("//=--------------------------------------------------------------------------=")
  20. cpp_quote("// (C) Copyright 1995-1998 Microsoft Corporation. All Rights Reserved.")
  21. cpp_quote("//")
  22. cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF")
  23. cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO")
  24. cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A")
  25. cpp_quote("// PARTICULAR PURPOSE.")
  26. cpp_quote("//=--------------------------------------------------------------------------=")
  27. cpp_quote("")
  28. cpp_quote("#pragma comment(lib,\"uuid.lib\")")
  29. cpp_quote("")
  30. cpp_quote("//---------------------------------------------------------------------------=")
  31. cpp_quote("// IDownloadNotify Interface.")
  32. cpp_quote("")
  33. import "objidl.idl";
  34. import "oleidl.idl";
  35. interface IDownloadNotify;
  36. //+---------------------------------------------------------------------------
  37. //
  38. // Copyright (C) Microsoft Corporation, 1995-1998.
  39. //
  40. // Contents: IDownloadNotify interface definition
  41. //
  42. //----------------------------------------------------------------------------
  43. // IOleCommandTarget command group GUID and command IDs
  44. cpp_quote("EXTERN_C const GUID CGID_DownloadHost;")
  45. cpp_quote("#ifndef _LPDOWNLOADHOST_CMDID_DEFINED")
  46. cpp_quote("#define _LPDOWNLOADHOST_CMDID_DEFINED")
  47. cpp_quote("#define DWNHCMDID_SETDOWNLOADNOTIFY (0)")
  48. cpp_quote("#endif")
  49. cpp_quote("#ifndef _LPDOWNLOADNOTIFY_DEFINED")
  50. cpp_quote("#define _LPDOWNLOADNOTIFY_DEFINED")
  51. cpp_quote("#define DWNTYPE_HTM 0")
  52. cpp_quote("#define DWNTYPE_IMG 1")
  53. cpp_quote("#define DWNTYPE_BITS 2")
  54. cpp_quote("#define DWNTYPE_FILE 3")
  55. [local, object, uuid(caeb5d28-ae4c-11d1-ba40-00c04fb92d79), pointer_default(unique)]
  56. interface IDownloadNotify : IUnknown
  57. {
  58. typedef [unique] IDownloadNotify *LPDOWNLOADNOTIFY;
  59. // Called when a download is about to begin; return E_ABORT to avoid download
  60. HRESULT DownloadStart(
  61. [in] LPCWSTR pchUrl, // may be NULL if URL is unspecified
  62. [in] DWORD dwDownloadId,
  63. [in] DWORD dwType,
  64. [in] DWORD dwReserved);
  65. // Called when a download is finished; even called if download was aborted at DownloadStart
  66. HRESULT DownloadComplete(
  67. [in] DWORD dwDownloadId,
  68. [in] HRESULT hrNotify,
  69. [in] DWORD dwReserved);
  70. }
  71. cpp_quote("#endif")