| 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 |
|
| 22 |
#ifndef DO_NO_IMPORTS |
| 23 |
import "bits.idl"; |
| 24 |
import "bits2_0.idl"; |
| 25 |
#endif |
| 26 |
|
| 27 |
[ |
| 28 |
uuid(659cdeac-489e-11d9-a9cd-000d56965251), |
| 29 |
odl |
| 30 |
] |
| 31 |
interface IBackgroundCopyCallback2 : IBackgroundCopyCallback |
| 32 |
{ |
| 33 |
HRESULT FileTransferred([in] IBackgroundCopyJob *job, |
| 34 |
[in] IBackgroundCopyFile *file); |
| 35 |
} |
| 36 |
|
| 37 |
[ |
| 38 |
uuid(659cdeae-489e-11d9-a9cd-000d56965251), |
| 39 |
odl |
| 40 |
] |
| 41 |
interface IBackgroundCopyJob4 : IBackgroundCopyJob3 |
| 42 |
{ |
| 43 |
cpp_quote("#define BG_JOB_ENABLE_PEERCACHING_CLIENT 0x0001") |
| 44 |
cpp_quote("#define BG_JOB_ENABLE_PEERCACHING_SERVER 0x0002") |
| 45 |
cpp_quote("#define BG_JOB_DISABLE_BRANCH_CACHE 0x0004") |
| 46 |
|
| 47 |
HRESULT SetPeerCachingFlags(DWORD flags); |
| 48 |
HRESULT GetPeerCachingFlags([out, ref] DWORD *flags); |
| 49 |
HRESULT GetOwnerIntegrityLevel([out, ref] ULONG *level); |
| 50 |
HRESULT GetOwnerElevationState([out, ref] BOOL *elevated); |
| 51 |
HRESULT SetMaximumDownloadTime(ULONG timeout); |
| 52 |
HRESULT GetMaximumDownloadTime([out,ref] ULONG *timeout); |
| 53 |
} |
| 54 |
|
| 55 |
[ |
| 56 |
uuid(659cdea6-489e-11d9-a9cd-000d56965251), |
| 57 |
lcid(0x0000), |
| 58 |
version(1.0) |
| 59 |
] |
| 60 |
library BackgroundCopyManager3_0 |
| 61 |
{ |
| 62 |
[ |
| 63 |
uuid(659cdea7-489e-11d9-a9cd-000d56965251) |
| 64 |
] |
| 65 |
coclass BackgroundCopyManager3_0 |
| 66 |
{ |
| 67 |
[default] interface IBackgroundCopyManager; |
| 68 |
}; |
| 69 |
|
| 70 |
interface IBackgroundCopyJob4; |
| 71 |
} |