forked from wine-mirror/wine
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbits2_0.idl
100 lines (87 loc) · 2.59 KB
/
bits2_0.idl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*
* Background Intelligent Transfer Service (BITS) 2.0 interface
*
* Copyright 2015 Hans Leidekker for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*
*/
#ifndef DO_NO_IMPORTS
import "bits.idl";
import "bits1_5.idl";
#endif
cpp_quote("#define BG_COPY_FILE_OWNER 1")
cpp_quote("#define BG_COPY_FILE_GROUP 2")
cpp_quote("#define BG_COPY_FILE_DACL 4")
cpp_quote("#define BG_COPY_FILE_SACL 8")
cpp_quote("#define BG_COPY_FILE_ALL 15")
cpp_quote("#define BG_LENGTH_TO_EOF (UINT64)(-1)")
cpp_quote("#ifndef _BG_FILE_RANGE_DEFINED")
cpp_quote("#define _BG_FILE_RANGE_DEFINED")
typedef struct _BG_FILE_RANGE
{
UINT64 InitialOffset;
UINT64 Length;
} BG_FILE_RANGE;
cpp_quote("#endif")
[
uuid(443c8934-90ff-48ed-bcde-26f5c7450042),
odl
]
interface IBackgroundCopyJob3 : IBackgroundCopyJob2
{
HRESULT ReplaceRemotePrefix(
[in] LPCWSTR OldPrefix,
[in] LPCWSTR NewPrefix);
HRESULT AddFileWithRanges(
[in] LPCWSTR RemoteUrl,
[in] LPCWSTR LocalName,
[in] DWORD RangeCount,
[in, size_is(RangeCount)] BG_FILE_RANGE Ranges[]);
HRESULT SetFileACLFlags(
[in] DWORD Flags);
HRESULT GetFileACLFlags(
[out, ref] DWORD *Flags);
}
[
uuid(83e81b93-0873-474d-8a8c-f2018b1a939c),
odl
]
interface IBackgroundCopyFile2 : IBackgroundCopyFile
{
HRESULT GetFileRanges(
[in, out, unique] DWORD *RangeCount,
[out, size_is(, *RangeCount)] BG_FILE_RANGE **Ranges);
HRESULT SetRemoteName(
LPCWSTR Val);
}
[
uuid(2289a9af-dc96-486e-b268-89c9e3397c3d),
version(1.0)
]
library BackgroundCopyManager2_0
{
[
uuid(6d18ad12-bde3-4393-b311-099c346e6df9)
]
coclass BackgroundCopyManager2_0
{
[default] interface IBackgroundCopyManager;
};
interface IBackgroundCopyCallback;
interface IBackgroundCopyJob3;
interface IBackgroundCopyFile2;
}
cpp_quote("#include \"bits2_5.h\"")