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.

64 lines
2.9 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright 1995-1998 Microsoft Corporation. All Rights Reserved.
  5. //
  6. //--------------------------------------------------------------------------
  7. cpp_quote("//=--------------------------------------------------------------------------=")
  8. cpp_quote("// dlmgridl.h")
  9. cpp_quote("//=--------------------------------------------------------------------------=")
  10. cpp_quote("// (C) Copyright 1999 Microsoft Corporation. All Rights Reserved.")
  11. cpp_quote("//")
  12. cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF")
  13. cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO")
  14. cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A")
  15. cpp_quote("// PARTICULAR PURPOSE.")
  16. cpp_quote("//=--------------------------------------------------------------------------=")
  17. cpp_quote("")
  18. cpp_quote("#pragma comment(lib,\"uuid.lib\")")
  19. cpp_quote("")
  20. cpp_quote("//---------------------------------------------------------------------------=")
  21. cpp_quote("// Lightweight User Profile Interfaces.")
  22. cpp_quote("")
  23. cpp_quote("// --------------------------------------------------------------------------------")
  24. cpp_quote("// GUIDS")
  25. cpp_quote("// --------------------------------------------------------------------------------")
  26. cpp_quote("// {988934A4-064B-11D3-BB80-00104B35E7F9}")
  27. cpp_quote("DEFINE_GUID(IID_IDownloadManager, 0x988934a4, 0x064b, 0x11d3, 0xbb, 0x80, 0x0, 0x10, 0x4b, 0x35, 0xe7, 0xf9);")
  28. #ifndef DO_NO_IMPORTS
  29. import "unknwn.idl";
  30. import "ocidl.idl";
  31. import "oleidl.idl";
  32. import "oaidl.idl";
  33. #endif
  34. #include "winerror.h"
  35. interface IDownloadManager;
  36. [
  37. helpstring("IDownloadManager"),
  38. object,
  39. uuid(988934A4-064B-11D3-BB80-00104B35E7F9), // IID_IDownloadManager
  40. dual,
  41. pointer_default(unique)
  42. ]
  43. interface IDownloadManager : IDispatch
  44. {
  45. [id(1)] HRESULT Start( [in] IMoniker *pmk, [in] IBindCtx *pbc, [in] BSTR bstrSaveTo, [in] VARIANT_BOOL fSaveAs, [in] VARIANT_BOOL fSafe,
  46. [in] BSTR bstrHeaders, [in] LONG dwVerb, [in] LONG grfBINDF, [in] VARIANT *pbinfo,
  47. [in] BSTR bstrRedir, [in] LONG uiCP, [in] LONG dwAttempt);
  48. [id(2)] HRESULT StartURL([in] BSTR bstrURL, [in] VARIANT_BOOL fSaveAs, [in] BSTR bstrSaveTo, [in] IBindCtx *pbc, [in] VARIANT_BOOL fSafe,
  49. [in] BSTR bstrHeaders, [in] LONG dwVerb, [in] LONG grfBINDF, [in] VARIANT *pbinfo,
  50. [in] BSTR bstrRedir, [in] LONG uiCP, [in] LONG dwAttempt);
  51. [id(3)] HRESULT DownloadURL([in] BSTR bstrURL, [in] VARIANT_BOOL fSaveAs);
  52. [propget, id(4)] HRESULT eventlock([out, retval] VARIANT_BOOL *pfEventLock);
  53. [propput, id(4)] HRESULT eventlock([in] VARIANT_BOOL fEventLock);
  54. [id(5)] HRESULT CancelDownload([in] LONG lID);
  55. [id(6)] HRESULT SetState([in] LONG lID, [in] LONG lState);
  56. [id(7)] HRESULT StartPendingLaterDownloads();
  57. };