27cpp_quote("
#define BG_SIZE_UNKNOWN (UINT64)(-1)")
28cpp_quote("#define BG_NOTIFY_JOB_TRANSFERRED 0x0001")
29cpp_quote("#define BG_NOTIFY_JOB_ERROR 0x0002")
30cpp_quote("#define BG_NOTIFY_DISABLE 0x0004")
31cpp_quote("#define BG_NOTIFY_JOB_MODIFICATION 0x0008")
32cpp_quote("#define BG_NOTIFY_FILE_TRANSFERRED 0x0010")
34cpp_quote("#ifdef WINE_NO_UNICODE_MACROS")
35cpp_quote("#undef EnumJobs")
36cpp_quote("#undef GetJob")
39#define BG_ENUM_SIZEIS(maxcount) maxcount
40#define BG_ENUM_LENGTHIS(maxcount,lengthptr) lengthptr ? *lengthptr : maxcount
43 uuid(01b7bd23-fb88-4a77-8490-5891d3e4653a),
46interface IBackgroundCopyFile : IUnknown
48 typedef struct _BG_FILE_PROGRESS {
50 UINT64 BytesTransferred;
54 HRESULT GetRemoteName(
63 [out] BG_FILE_PROGRESS *pVal
69 uuid(ca51e165-c365-424c-8d41-24aaa4ff3c40),
72interface IEnumBackgroundCopyFiles: IUnknown
76 [out,size_is(BG_ENUM_SIZEIS(celt)),length_is(BG_ENUM_LENGTHIS(celt,pceltFetched))] IBackgroundCopyFile **rgelt,
77 [in,out,unique] ULONG *pceltFetched
87 [out] IEnumBackgroundCopyFiles **ppenum
97 uuid(19c613a0-fcb8-4f28-81ae-897c3d078f81),
100interface IBackgroundCopyError : IUnknown
103 BG_ERROR_CONTEXT_NONE = 0,
104 BG_ERROR_CONTEXT_UNKNOWN = 1,
105 BG_ERROR_CONTEXT_GENERAL_QUEUE_MANAGER = 2,
106 BG_ERROR_CONTEXT_QUEUE_MANAGER_NOTIFICATION =3,
107 BG_ERROR_CONTEXT_LOCAL_FILE = 4,
108 BG_ERROR_CONTEXT_REMOTE_FILE = 5,
109 BG_ERROR_CONTEXT_GENERAL_TRANSPORT = 6,
110 BG_ERROR_CONTEXT_REMOTE_APPLICATION =7,
114 [out,ref] BG_ERROR_CONTEXT *pContext,
115 [out,ref] HRESULT *pCode
119 [out] IBackgroundCopyFile **pVal
122 HRESULT GetErrorDescription(
123 [in] DWORD LanguageId,
124 [out,ref] LPWSTR *pErrorDescription
127 HRESULT GetErrorContextDescription(
128 [in] DWORD LanguageId,
129 [out,ref] LPWSTR *pContextDescription
133 [out,ref] LPWSTR *pProtocol
140 uuid(37668d37-507e-4160-9316-26306d150b12),
143interface IBackgroundCopyJob : IUnknown
145 typedef struct _BG_FILE_INFO {
150 typedef struct _BG_JOB_PROGRESS {
152 UINT64 BytesTransferred;
154 ULONG FilesTransferred;
157 typedef struct _BG_JOB_TIMES {
158 FILETIME CreationTime;
159 FILETIME ModificationTime;
160 FILETIME TransferCompletionTime;
164 BG_JOB_PRIORITY_FOREGROUND = 0,
165 BG_JOB_PRIORITY_HIGH = 1,
166 BG_JOB_PRIORITY_NORMAL = 2,
167 BG_JOB_PRIORITY_LOW = 3
171 BG_JOB_STATE_QUEUED = 0,
172 BG_JOB_STATE_CONNECTING = 1,
173 BG_JOB_STATE_TRANSFERRING = 2,
174 BG_JOB_STATE_SUSPENDED = 3,
175 BG_JOB_STATE_ERROR = 4,
176 BG_JOB_STATE_TRANSIENT_ERROR = 5,
177 BG_JOB_STATE_TRANSFERRED = 6,
178 BG_JOB_STATE_ACKNOWLEDGED = 7,
179 BG_JOB_STATE_CANCELLED = 8
183 BG_JOB_TYPE_DOWNLOAD = 0,
184 BG_JOB_TYPE_UPLOAD = 1,
185 BG_JOB_TYPE_UPLOAD_REPLY = 2
189 BG_JOB_PROXY_USAGE_PRECONFIG,
190 BG_JOB_PROXY_USAGE_NO_PROXY,
191 BG_JOB_PROXY_USAGE_OVERRIDE,
192 BG_JOB_PROXY_USAGE_AUTODETECT
193 } BG_JOB_PROXY_USAGE;
197 [in] ULONG cFileCount,
198 [in,size_is(cFileCount)] BG_FILE_INFO *pFileSet
202 [in] LPCWSTR RemoteUrl,
203 [in] LPCWSTR LocalName
207 [out] IEnumBackgroundCopyFiles **pEnum
223 [out] BG_JOB_TYPE *pVal
227 [out] BG_JOB_PROGRESS *pVal
231 [out] BG_JOB_TIMES *pVal
235 [out] BG_JOB_STATE *pVal
239 [out] IBackgroundCopyError **ppError
246 HRESULT SetDisplayName(
250 HRESULT GetDisplayName(
254 HRESULT SetDescription(
258 HRESULT GetDescription(
263 [in] BG_JOB_PRIORITY Val
267 [out] BG_JOB_PRIORITY *pVal
270 HRESULT SetNotifyFlags(
274 HRESULT GetNotifyFlags(
278 HRESULT SetNotifyInterface(
282 HRESULT GetNotifyInterface(
283 [out] IUnknown ** pVal
286 HRESULT SetMinimumRetryDelay(
290 HRESULT GetMinimumRetryDelay(
294 HRESULT SetNoProgressTimeout(
298 HRESULT GetNoProgressTimeout(
302 HRESULT GetErrorCount(
306 HRESULT SetProxySettings(
307 [in] BG_JOB_PROXY_USAGE ProxyUsage,
308 [in,string,unique] const WCHAR *ProxyList,
309 [in,string,unique] const WCHAR *ProxyBypassList
312 HRESULT GetProxySettings(
313 [out] BG_JOB_PROXY_USAGE *pProxyUsage,
314 [out] LPWSTR *pProxyList,
315 [out] LPWSTR *pProxyBypassList
318 HRESULT TakeOwnership();
322 uuid(1af4f612-3b71-466f-8f58-7b6f73ac57ad),
325interface IEnumBackgroundCopyJobs : IUnknown
329 [out,size_is(BG_ENUM_SIZEIS(celt)),length_is(BG_ENUM_LENGTHIS(celt,pceltFetched))] IBackgroundCopyJob **rgelt,
330 [in,out,unique] ULONG *pceltFetched
340 [out] IEnumBackgroundCopyJobs **ppenum
350 uuid(97ea99c7-0186-4ad4-8df9-c5b4e0ed6b22),
353interface IBackgroundCopyCallback : IUnknown
355 HRESULT JobTransferred(
356 [in] IBackgroundCopyJob *pJob
360 [in] IBackgroundCopyJob *pJob,
361 [in] IBackgroundCopyError *pError
364 HRESULT JobModification(
365 [in] IBackgroundCopyJob *pJob,
366 [in] DWORD dwReserved
371 uuid(5ce34c0d-0dc9-4c1f-897c-daa1b78cee7c),
374interface IBackgroundCopyManager : IUnknown
376 cpp_quote("#define BG_JOB_ENUM_ALL_USERS 0x0001")
379 [in] LPCWSTR DisplayName,
380 [in] BG_JOB_TYPE Type,
382 [out] IBackgroundCopyJob **ppJob
387 [out] IBackgroundCopyJob **ppJob
392 [out] IEnumBackgroundCopyJobs **ppEnum
394 HRESULT GetErrorDescription(
395 [in] HRESULT hResult,
396 [in] DWORD LanguageId,
397 [out] LPWSTR *pErrorDescription);
402 uuid(1deeb74f-7915-4560-b558-918c83f176a6),
405library BackgroundCopyManager
408 uuid(4991d34b-80a1-4291-83b6-3328366b9097),
410 coclass BackgroundCopyManager
412 [default] interface IBackgroundCopyManager;
415 interface IBackgroundCopyCallback;
418cpp_quote("#include \"bits1_5.h\"")
CD3D10_BUFFER_DESC D3D10_BUFFER_DESC cpp_quote(" ~CD3D10_BUFFER_DESC() {}") operator const D3D10_BUFFER_DESC &() const