bits3_0.idl 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * Background Intelligent Transfer Service (BITS) 3.0 interface
  3. *
  4. * Copyright 2013 Nikolay Sivov for CodeWeavers
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2.1 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with this library; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  19. *
  20. */
  21. #ifndef DO_NO_IMPORTS
  22. import "bits.idl";
  23. import "bits2_0.idl";
  24. #endif
  25. [
  26. uuid(659cdeac-489e-11d9-a9cd-000d56965251),
  27. odl
  28. ]
  29. interface IBackgroundCopyCallback2 : IBackgroundCopyCallback
  30. {
  31. HRESULT FileTransferred([in] IBackgroundCopyJob *job,
  32. [in] IBackgroundCopyFile *file);
  33. }
  34. [
  35. uuid(659cdeae-489e-11d9-a9cd-000d56965251),
  36. odl
  37. ]
  38. interface IBackgroundCopyJob4 : IBackgroundCopyJob3
  39. {
  40. cpp_quote("#define BG_JOB_ENABLE_PEERCACHING_CLIENT 0x0001")
  41. cpp_quote("#define BG_JOB_ENABLE_PEERCACHING_SERVER 0x0002")
  42. cpp_quote("#define BG_JOB_DISABLE_BRANCH_CACHE 0x0004")
  43. HRESULT SetPeerCachingFlags(DWORD flags);
  44. HRESULT GetPeerCachingFlags([out, ref] DWORD *flags);
  45. HRESULT GetOwnerIntegrityLevel([out, ref] ULONG *level);
  46. HRESULT GetOwnerElevationState([out, ref] BOOL *elevated);
  47. HRESULT SetMaximumDownloadTime(ULONG timeout);
  48. HRESULT GetMaximumDownloadTime([out,ref] ULONG *timeout);
  49. }
  50. [
  51. uuid(659cdea6-489e-11d9-a9cd-000d56965251),
  52. lcid(0x0000),
  53. version(1.0)
  54. ]
  55. library BackgroundCopyManager3_0
  56. {
  57. [
  58. uuid(659cdea7-489e-11d9-a9cd-000d56965251)
  59. ]
  60. coclass BackgroundCopyManager3_0
  61. {
  62. [default] interface IBackgroundCopyManager;
  63. };
  64. interface IBackgroundCopyJob4;
  65. }