ReactOS 0.4.17-dev-966-gf06eace
bits2_0.idl
Go to the documentation of this file.
1/*
2 * Background Intelligent Transfer Service (BITS) 2.0 interface
3 *
4 * Copyright 2015 Hans Leidekker 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
23import "bits.idl";
24import "bits1_5.idl";
25#endif
26
27cpp_quote("#define BG_COPY_FILE_OWNER 1")
28cpp_quote("#define BG_COPY_FILE_GROUP 2")
29cpp_quote("#define BG_COPY_FILE_DACL 4")
30cpp_quote("#define BG_COPY_FILE_SACL 8")
31cpp_quote("#define BG_COPY_FILE_ALL 15")
32
33cpp_quote("#define BG_LENGTH_TO_EOF (UINT64)(-1)")
34
35cpp_quote("#ifndef _BG_FILE_RANGE_DEFINED")
36cpp_quote("#define _BG_FILE_RANGE_DEFINED")
37typedef struct _BG_FILE_RANGE
38{
39 UINT64 InitialOffset;
40 UINT64 Length;
41} BG_FILE_RANGE;
42cpp_quote("#endif")
43
44[
45 uuid(443c8934-90ff-48ed-bcde-26f5c7450042),
46 odl
47]
48interface IBackgroundCopyJob3 : IBackgroundCopyJob2
49{
50 HRESULT ReplaceRemotePrefix(
51 [in] LPCWSTR OldPrefix,
52 [in] LPCWSTR NewPrefix);
53
54 HRESULT AddFileWithRanges(
55 [in] LPCWSTR RemoteUrl,
56 [in] LPCWSTR LocalName,
57 [in] DWORD RangeCount,
58 [in, size_is(RangeCount)] BG_FILE_RANGE Ranges[]);
59
60 HRESULT SetFileACLFlags(
61 [in] DWORD Flags);
62
63 HRESULT GetFileACLFlags(
64 [out, ref] DWORD *Flags);
65}
66
67[
68 uuid(83e81b93-0873-474d-8a8c-f2018b1a939c),
69 odl
70]
71interface IBackgroundCopyFile2 : IBackgroundCopyFile
72{
73 HRESULT GetFileRanges(
74 [in, out, unique] DWORD *RangeCount,
75 [out, size_is(, *RangeCount)] BG_FILE_RANGE **Ranges);
76
77 HRESULT SetRemoteName(
78 LPCWSTR Val);
79}
80
81[
82 uuid(2289a9af-dc96-486e-b268-89c9e3397c3d),
83 version(1.0)
84]
85library BackgroundCopyManager2_0
86{
87 [
88 uuid(6d18ad12-bde3-4393-b311-099c346e6df9)
89 ]
90 coclass BackgroundCopyManager2_0
91 {
92 [default] interface IBackgroundCopyManager;
93 };
94
95 interface IBackgroundCopyCallback;
96 interface IBackgroundCopyJob3;
97 interface IBackgroundCopyFile2;
98}
99
100cpp_quote("#include \"bits2_5.h\"")
CD3D10_BUFFER_DESC D3D10_BUFFER_DESC cpp_quote(" ~CD3D10_BUFFER_DESC() {}") operator const D3D10_BUFFER_DESC &() const
Definition: d3d10.idl:496