| 1 |
/* |
| 2 |
* Background Intelligent Transfer Service (BITS) 5.0 interface |
| 3 |
* |
| 4 |
* Copyright 2020 Aaron Hill |
| 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 "bits1_5.idl"; |
| 25 |
import "bits2_0.idl"; |
| 26 |
import "bits2_5.idl"; |
| 27 |
import "bits3_0.idl"; |
| 28 |
#endif |
| 29 |
|
| 30 |
cpp_quote("#define BITS_COST_STATE_TRANSFER_ALWAYS 0x800000ff") |
| 31 |
|
| 32 |
[ |
| 33 |
uuid(e847030c-bbba-4657-af6d-484aa42bf1fe), |
| 34 |
odl |
| 35 |
] |
| 36 |
interface IBackgroundCopyJob5: IBackgroundCopyJob4 |
| 37 |
{ |
| 38 |
typedef enum { |
| 39 |
BITS_JOB_PROPERTY_ID_COST_FLAGS = 1, |
| 40 |
BITS_JOB_PROPERTY_NOTIFICATION_CLSID = 2, |
| 41 |
BITS_JOB_PROPERTY_DYNAMIC_CONTENT = 3, |
| 42 |
BITS_JOB_PROPERTY_HIGH_PERFORMANCE = 4, |
| 43 |
BITS_JOB_PROPERTY_MAX_DOWNLOAD_SIZE = 5, |
| 44 |
BITS_JOB_PROPERTY_USE_STORED_CREDENTIALS = 7, |
| 45 |
BITS_JOB_PROPERTY_MINIMUM_NOTIFICATION_INTERVAL_MS = 9, |
| 46 |
BITS_JOB_PROPERTY_ON_DEMAND_MODE = 10, |
| 47 |
} BITS_JOB_PROPERTY_ID; |
| 48 |
|
| 49 |
typedef union _BITS_JOB_PROPERTY_VALUE { |
| 50 |
DWORD Dword; |
| 51 |
GUID ClsID; |
| 52 |
BOOL Enable; |
| 53 |
UINT64 Uint64; |
| 54 |
BG_AUTH_TARGET Target; |
| 55 |
} BITS_JOB_PROPERTY_VALUE; |
| 56 |
|
| 57 |
HRESULT SetProperty(BITS_JOB_PROPERTY_ID id, BITS_JOB_PROPERTY_VALUE value); |
| 58 |
HRESULT GetProperty(BITS_JOB_PROPERTY_ID id, [out, ref] BITS_JOB_PROPERTY_VALUE *value); |
| 59 |
} |