bits.h 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327
  1. /*** Autogenerated by WIDL 7.7 from include/bits.idl - Do not edit ***/
  2. #ifdef _WIN32
  3. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  4. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  5. #endif
  6. #include <rpc.h>
  7. #include <rpcndr.h>
  8. #endif
  9. #ifndef COM_NO_WINDOWS_H
  10. #include <windows.h>
  11. #include <ole2.h>
  12. #endif
  13. #ifndef __bits_h__
  14. #define __bits_h__
  15. /* Forward declarations */
  16. #ifndef __IBackgroundCopyFile_FWD_DEFINED__
  17. #define __IBackgroundCopyFile_FWD_DEFINED__
  18. typedef interface IBackgroundCopyFile IBackgroundCopyFile;
  19. #ifdef __cplusplus
  20. interface IBackgroundCopyFile;
  21. #endif /* __cplusplus */
  22. #endif
  23. #ifndef __IEnumBackgroundCopyFiles_FWD_DEFINED__
  24. #define __IEnumBackgroundCopyFiles_FWD_DEFINED__
  25. typedef interface IEnumBackgroundCopyFiles IEnumBackgroundCopyFiles;
  26. #ifdef __cplusplus
  27. interface IEnumBackgroundCopyFiles;
  28. #endif /* __cplusplus */
  29. #endif
  30. #ifndef __IBackgroundCopyError_FWD_DEFINED__
  31. #define __IBackgroundCopyError_FWD_DEFINED__
  32. typedef interface IBackgroundCopyError IBackgroundCopyError;
  33. #ifdef __cplusplus
  34. interface IBackgroundCopyError;
  35. #endif /* __cplusplus */
  36. #endif
  37. #ifndef __IBackgroundCopyJob_FWD_DEFINED__
  38. #define __IBackgroundCopyJob_FWD_DEFINED__
  39. typedef interface IBackgroundCopyJob IBackgroundCopyJob;
  40. #ifdef __cplusplus
  41. interface IBackgroundCopyJob;
  42. #endif /* __cplusplus */
  43. #endif
  44. #ifndef __IEnumBackgroundCopyJobs_FWD_DEFINED__
  45. #define __IEnumBackgroundCopyJobs_FWD_DEFINED__
  46. typedef interface IEnumBackgroundCopyJobs IEnumBackgroundCopyJobs;
  47. #ifdef __cplusplus
  48. interface IEnumBackgroundCopyJobs;
  49. #endif /* __cplusplus */
  50. #endif
  51. #ifndef __IBackgroundCopyCallback_FWD_DEFINED__
  52. #define __IBackgroundCopyCallback_FWD_DEFINED__
  53. typedef interface IBackgroundCopyCallback IBackgroundCopyCallback;
  54. #ifdef __cplusplus
  55. interface IBackgroundCopyCallback;
  56. #endif /* __cplusplus */
  57. #endif
  58. #ifndef __IBackgroundCopyManager_FWD_DEFINED__
  59. #define __IBackgroundCopyManager_FWD_DEFINED__
  60. typedef interface IBackgroundCopyManager IBackgroundCopyManager;
  61. #ifdef __cplusplus
  62. interface IBackgroundCopyManager;
  63. #endif /* __cplusplus */
  64. #endif
  65. #ifndef __BackgroundCopyManager_FWD_DEFINED__
  66. #define __BackgroundCopyManager_FWD_DEFINED__
  67. #ifdef __cplusplus
  68. typedef class BackgroundCopyManager BackgroundCopyManager;
  69. #else
  70. typedef struct BackgroundCopyManager BackgroundCopyManager;
  71. #endif /* defined __cplusplus */
  72. #endif /* defined __BackgroundCopyManager_FWD_DEFINED__ */
  73. /* Headers for imported files */
  74. #include <unknwn.h>
  75. #ifdef __cplusplus
  76. extern "C" {
  77. #endif
  78. #include "bitsmsg.h"
  79. #define BG_SIZE_UNKNOWN (UINT64)(-1)
  80. #define BG_NOTIFY_JOB_TRANSFERRED 0x0001
  81. #define BG_NOTIFY_JOB_ERROR 0x0002
  82. #define BG_NOTIFY_DISABLE 0x0004
  83. #define BG_NOTIFY_JOB_MODIFICATION 0x0008
  84. #define BG_NOTIFY_FILE_TRANSFERRED 0x0010
  85. #ifdef WINE_NO_UNICODE_MACROS
  86. #undef EnumJobs
  87. #undef GetJob
  88. #endif
  89. /*****************************************************************************
  90. * IBackgroundCopyFile interface
  91. */
  92. #ifndef __IBackgroundCopyFile_INTERFACE_DEFINED__
  93. #define __IBackgroundCopyFile_INTERFACE_DEFINED__
  94. typedef struct _BG_FILE_PROGRESS {
  95. UINT64 BytesTotal;
  96. UINT64 BytesTransferred;
  97. WINBOOL Completed;
  98. } BG_FILE_PROGRESS;
  99. DEFINE_GUID(IID_IBackgroundCopyFile, 0x01b7bd23, 0xfb88, 0x4a77, 0x84,0x90, 0x58,0x91,0xd3,0xe4,0x65,0x3a);
  100. #if defined(__cplusplus) && !defined(CINTERFACE)
  101. MIDL_INTERFACE("01b7bd23-fb88-4a77-8490-5891d3e4653a")
  102. IBackgroundCopyFile : public IUnknown
  103. {
  104. virtual HRESULT STDMETHODCALLTYPE GetRemoteName(
  105. LPWSTR *pVal) = 0;
  106. virtual HRESULT STDMETHODCALLTYPE GetLocalName(
  107. LPWSTR *pVal) = 0;
  108. virtual HRESULT STDMETHODCALLTYPE GetProgress(
  109. BG_FILE_PROGRESS *pVal) = 0;
  110. };
  111. #ifdef __CRT_UUID_DECL
  112. __CRT_UUID_DECL(IBackgroundCopyFile, 0x01b7bd23, 0xfb88, 0x4a77, 0x84,0x90, 0x58,0x91,0xd3,0xe4,0x65,0x3a)
  113. #endif
  114. #else
  115. typedef struct IBackgroundCopyFileVtbl {
  116. BEGIN_INTERFACE
  117. /*** IUnknown methods ***/
  118. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  119. IBackgroundCopyFile *This,
  120. REFIID riid,
  121. void **ppvObject);
  122. ULONG (STDMETHODCALLTYPE *AddRef)(
  123. IBackgroundCopyFile *This);
  124. ULONG (STDMETHODCALLTYPE *Release)(
  125. IBackgroundCopyFile *This);
  126. /*** IBackgroundCopyFile methods ***/
  127. HRESULT (STDMETHODCALLTYPE *GetRemoteName)(
  128. IBackgroundCopyFile *This,
  129. LPWSTR *pVal);
  130. HRESULT (STDMETHODCALLTYPE *GetLocalName)(
  131. IBackgroundCopyFile *This,
  132. LPWSTR *pVal);
  133. HRESULT (STDMETHODCALLTYPE *GetProgress)(
  134. IBackgroundCopyFile *This,
  135. BG_FILE_PROGRESS *pVal);
  136. END_INTERFACE
  137. } IBackgroundCopyFileVtbl;
  138. interface IBackgroundCopyFile {
  139. CONST_VTBL IBackgroundCopyFileVtbl* lpVtbl;
  140. };
  141. #ifdef COBJMACROS
  142. #ifndef WIDL_C_INLINE_WRAPPERS
  143. /*** IUnknown methods ***/
  144. #define IBackgroundCopyFile_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  145. #define IBackgroundCopyFile_AddRef(This) (This)->lpVtbl->AddRef(This)
  146. #define IBackgroundCopyFile_Release(This) (This)->lpVtbl->Release(This)
  147. /*** IBackgroundCopyFile methods ***/
  148. #define IBackgroundCopyFile_GetRemoteName(This,pVal) (This)->lpVtbl->GetRemoteName(This,pVal)
  149. #define IBackgroundCopyFile_GetLocalName(This,pVal) (This)->lpVtbl->GetLocalName(This,pVal)
  150. #define IBackgroundCopyFile_GetProgress(This,pVal) (This)->lpVtbl->GetProgress(This,pVal)
  151. #else
  152. /*** IUnknown methods ***/
  153. static FORCEINLINE HRESULT IBackgroundCopyFile_QueryInterface(IBackgroundCopyFile* This,REFIID riid,void **ppvObject) {
  154. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  155. }
  156. static FORCEINLINE ULONG IBackgroundCopyFile_AddRef(IBackgroundCopyFile* This) {
  157. return This->lpVtbl->AddRef(This);
  158. }
  159. static FORCEINLINE ULONG IBackgroundCopyFile_Release(IBackgroundCopyFile* This) {
  160. return This->lpVtbl->Release(This);
  161. }
  162. /*** IBackgroundCopyFile methods ***/
  163. static FORCEINLINE HRESULT IBackgroundCopyFile_GetRemoteName(IBackgroundCopyFile* This,LPWSTR *pVal) {
  164. return This->lpVtbl->GetRemoteName(This,pVal);
  165. }
  166. static FORCEINLINE HRESULT IBackgroundCopyFile_GetLocalName(IBackgroundCopyFile* This,LPWSTR *pVal) {
  167. return This->lpVtbl->GetLocalName(This,pVal);
  168. }
  169. static FORCEINLINE HRESULT IBackgroundCopyFile_GetProgress(IBackgroundCopyFile* This,BG_FILE_PROGRESS *pVal) {
  170. return This->lpVtbl->GetProgress(This,pVal);
  171. }
  172. #endif
  173. #endif
  174. #endif
  175. #endif /* __IBackgroundCopyFile_INTERFACE_DEFINED__ */
  176. /*****************************************************************************
  177. * IEnumBackgroundCopyFiles interface
  178. */
  179. #ifndef __IEnumBackgroundCopyFiles_INTERFACE_DEFINED__
  180. #define __IEnumBackgroundCopyFiles_INTERFACE_DEFINED__
  181. DEFINE_GUID(IID_IEnumBackgroundCopyFiles, 0xca51e165, 0xc365, 0x424c, 0x8d,0x41, 0x24,0xaa,0xa4,0xff,0x3c,0x40);
  182. #if defined(__cplusplus) && !defined(CINTERFACE)
  183. MIDL_INTERFACE("ca51e165-c365-424c-8d41-24aaa4ff3c40")
  184. IEnumBackgroundCopyFiles : public IUnknown
  185. {
  186. virtual HRESULT STDMETHODCALLTYPE Next(
  187. ULONG celt,
  188. IBackgroundCopyFile **rgelt,
  189. ULONG *pceltFetched) = 0;
  190. virtual HRESULT STDMETHODCALLTYPE Skip(
  191. ULONG celt) = 0;
  192. virtual HRESULT STDMETHODCALLTYPE Reset(
  193. ) = 0;
  194. virtual HRESULT STDMETHODCALLTYPE Clone(
  195. IEnumBackgroundCopyFiles **ppenum) = 0;
  196. virtual HRESULT STDMETHODCALLTYPE GetCount(
  197. ULONG *puCount) = 0;
  198. };
  199. #ifdef __CRT_UUID_DECL
  200. __CRT_UUID_DECL(IEnumBackgroundCopyFiles, 0xca51e165, 0xc365, 0x424c, 0x8d,0x41, 0x24,0xaa,0xa4,0xff,0x3c,0x40)
  201. #endif
  202. #else
  203. typedef struct IEnumBackgroundCopyFilesVtbl {
  204. BEGIN_INTERFACE
  205. /*** IUnknown methods ***/
  206. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  207. IEnumBackgroundCopyFiles *This,
  208. REFIID riid,
  209. void **ppvObject);
  210. ULONG (STDMETHODCALLTYPE *AddRef)(
  211. IEnumBackgroundCopyFiles *This);
  212. ULONG (STDMETHODCALLTYPE *Release)(
  213. IEnumBackgroundCopyFiles *This);
  214. /*** IEnumBackgroundCopyFiles methods ***/
  215. HRESULT (STDMETHODCALLTYPE *Next)(
  216. IEnumBackgroundCopyFiles *This,
  217. ULONG celt,
  218. IBackgroundCopyFile **rgelt,
  219. ULONG *pceltFetched);
  220. HRESULT (STDMETHODCALLTYPE *Skip)(
  221. IEnumBackgroundCopyFiles *This,
  222. ULONG celt);
  223. HRESULT (STDMETHODCALLTYPE *Reset)(
  224. IEnumBackgroundCopyFiles *This);
  225. HRESULT (STDMETHODCALLTYPE *Clone)(
  226. IEnumBackgroundCopyFiles *This,
  227. IEnumBackgroundCopyFiles **ppenum);
  228. HRESULT (STDMETHODCALLTYPE *GetCount)(
  229. IEnumBackgroundCopyFiles *This,
  230. ULONG *puCount);
  231. END_INTERFACE
  232. } IEnumBackgroundCopyFilesVtbl;
  233. interface IEnumBackgroundCopyFiles {
  234. CONST_VTBL IEnumBackgroundCopyFilesVtbl* lpVtbl;
  235. };
  236. #ifdef COBJMACROS
  237. #ifndef WIDL_C_INLINE_WRAPPERS
  238. /*** IUnknown methods ***/
  239. #define IEnumBackgroundCopyFiles_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  240. #define IEnumBackgroundCopyFiles_AddRef(This) (This)->lpVtbl->AddRef(This)
  241. #define IEnumBackgroundCopyFiles_Release(This) (This)->lpVtbl->Release(This)
  242. /*** IEnumBackgroundCopyFiles methods ***/
  243. #define IEnumBackgroundCopyFiles_Next(This,celt,rgelt,pceltFetched) (This)->lpVtbl->Next(This,celt,rgelt,pceltFetched)
  244. #define IEnumBackgroundCopyFiles_Skip(This,celt) (This)->lpVtbl->Skip(This,celt)
  245. #define IEnumBackgroundCopyFiles_Reset(This) (This)->lpVtbl->Reset(This)
  246. #define IEnumBackgroundCopyFiles_Clone(This,ppenum) (This)->lpVtbl->Clone(This,ppenum)
  247. #define IEnumBackgroundCopyFiles_GetCount(This,puCount) (This)->lpVtbl->GetCount(This,puCount)
  248. #else
  249. /*** IUnknown methods ***/
  250. static FORCEINLINE HRESULT IEnumBackgroundCopyFiles_QueryInterface(IEnumBackgroundCopyFiles* This,REFIID riid,void **ppvObject) {
  251. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  252. }
  253. static FORCEINLINE ULONG IEnumBackgroundCopyFiles_AddRef(IEnumBackgroundCopyFiles* This) {
  254. return This->lpVtbl->AddRef(This);
  255. }
  256. static FORCEINLINE ULONG IEnumBackgroundCopyFiles_Release(IEnumBackgroundCopyFiles* This) {
  257. return This->lpVtbl->Release(This);
  258. }
  259. /*** IEnumBackgroundCopyFiles methods ***/
  260. static FORCEINLINE HRESULT IEnumBackgroundCopyFiles_Next(IEnumBackgroundCopyFiles* This,ULONG celt,IBackgroundCopyFile **rgelt,ULONG *pceltFetched) {
  261. return This->lpVtbl->Next(This,celt,rgelt,pceltFetched);
  262. }
  263. static FORCEINLINE HRESULT IEnumBackgroundCopyFiles_Skip(IEnumBackgroundCopyFiles* This,ULONG celt) {
  264. return This->lpVtbl->Skip(This,celt);
  265. }
  266. static FORCEINLINE HRESULT IEnumBackgroundCopyFiles_Reset(IEnumBackgroundCopyFiles* This) {
  267. return This->lpVtbl->Reset(This);
  268. }
  269. static FORCEINLINE HRESULT IEnumBackgroundCopyFiles_Clone(IEnumBackgroundCopyFiles* This,IEnumBackgroundCopyFiles **ppenum) {
  270. return This->lpVtbl->Clone(This,ppenum);
  271. }
  272. static FORCEINLINE HRESULT IEnumBackgroundCopyFiles_GetCount(IEnumBackgroundCopyFiles* This,ULONG *puCount) {
  273. return This->lpVtbl->GetCount(This,puCount);
  274. }
  275. #endif
  276. #endif
  277. #endif
  278. #endif /* __IEnumBackgroundCopyFiles_INTERFACE_DEFINED__ */
  279. /*****************************************************************************
  280. * IBackgroundCopyError interface
  281. */
  282. #ifndef __IBackgroundCopyError_INTERFACE_DEFINED__
  283. #define __IBackgroundCopyError_INTERFACE_DEFINED__
  284. typedef enum __WIDL_bits_generated_name_0000000C {
  285. BG_ERROR_CONTEXT_NONE = 0,
  286. BG_ERROR_CONTEXT_UNKNOWN = 1,
  287. BG_ERROR_CONTEXT_GENERAL_QUEUE_MANAGER = 2,
  288. BG_ERROR_CONTEXT_QUEUE_MANAGER_NOTIFICATION = 3,
  289. BG_ERROR_CONTEXT_LOCAL_FILE = 4,
  290. BG_ERROR_CONTEXT_REMOTE_FILE = 5,
  291. BG_ERROR_CONTEXT_GENERAL_TRANSPORT = 6,
  292. BG_ERROR_CONTEXT_REMOTE_APPLICATION = 7
  293. } BG_ERROR_CONTEXT;
  294. DEFINE_GUID(IID_IBackgroundCopyError, 0x19c613a0, 0xfcb8, 0x4f28, 0x81,0xae, 0x89,0x7c,0x3d,0x07,0x8f,0x81);
  295. #if defined(__cplusplus) && !defined(CINTERFACE)
  296. MIDL_INTERFACE("19c613a0-fcb8-4f28-81ae-897c3d078f81")
  297. IBackgroundCopyError : public IUnknown
  298. {
  299. virtual HRESULT STDMETHODCALLTYPE GetError(
  300. BG_ERROR_CONTEXT *pContext,
  301. HRESULT *pCode) = 0;
  302. virtual HRESULT STDMETHODCALLTYPE GetFile(
  303. IBackgroundCopyFile **pVal) = 0;
  304. virtual HRESULT STDMETHODCALLTYPE GetErrorDescription(
  305. DWORD LanguageId,
  306. LPWSTR *pErrorDescription) = 0;
  307. virtual HRESULT STDMETHODCALLTYPE GetErrorContextDescription(
  308. DWORD LanguageId,
  309. LPWSTR *pContextDescription) = 0;
  310. virtual HRESULT STDMETHODCALLTYPE GetProtocol(
  311. LPWSTR *pProtocol) = 0;
  312. };
  313. #ifdef __CRT_UUID_DECL
  314. __CRT_UUID_DECL(IBackgroundCopyError, 0x19c613a0, 0xfcb8, 0x4f28, 0x81,0xae, 0x89,0x7c,0x3d,0x07,0x8f,0x81)
  315. #endif
  316. #else
  317. typedef struct IBackgroundCopyErrorVtbl {
  318. BEGIN_INTERFACE
  319. /*** IUnknown methods ***/
  320. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  321. IBackgroundCopyError *This,
  322. REFIID riid,
  323. void **ppvObject);
  324. ULONG (STDMETHODCALLTYPE *AddRef)(
  325. IBackgroundCopyError *This);
  326. ULONG (STDMETHODCALLTYPE *Release)(
  327. IBackgroundCopyError *This);
  328. /*** IBackgroundCopyError methods ***/
  329. HRESULT (STDMETHODCALLTYPE *GetError)(
  330. IBackgroundCopyError *This,
  331. BG_ERROR_CONTEXT *pContext,
  332. HRESULT *pCode);
  333. HRESULT (STDMETHODCALLTYPE *GetFile)(
  334. IBackgroundCopyError *This,
  335. IBackgroundCopyFile **pVal);
  336. HRESULT (STDMETHODCALLTYPE *GetErrorDescription)(
  337. IBackgroundCopyError *This,
  338. DWORD LanguageId,
  339. LPWSTR *pErrorDescription);
  340. HRESULT (STDMETHODCALLTYPE *GetErrorContextDescription)(
  341. IBackgroundCopyError *This,
  342. DWORD LanguageId,
  343. LPWSTR *pContextDescription);
  344. HRESULT (STDMETHODCALLTYPE *GetProtocol)(
  345. IBackgroundCopyError *This,
  346. LPWSTR *pProtocol);
  347. END_INTERFACE
  348. } IBackgroundCopyErrorVtbl;
  349. interface IBackgroundCopyError {
  350. CONST_VTBL IBackgroundCopyErrorVtbl* lpVtbl;
  351. };
  352. #ifdef COBJMACROS
  353. #ifndef WIDL_C_INLINE_WRAPPERS
  354. /*** IUnknown methods ***/
  355. #define IBackgroundCopyError_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  356. #define IBackgroundCopyError_AddRef(This) (This)->lpVtbl->AddRef(This)
  357. #define IBackgroundCopyError_Release(This) (This)->lpVtbl->Release(This)
  358. /*** IBackgroundCopyError methods ***/
  359. #define IBackgroundCopyError_GetError(This,pContext,pCode) (This)->lpVtbl->GetError(This,pContext,pCode)
  360. #define IBackgroundCopyError_GetFile(This,pVal) (This)->lpVtbl->GetFile(This,pVal)
  361. #define IBackgroundCopyError_GetErrorDescription(This,LanguageId,pErrorDescription) (This)->lpVtbl->GetErrorDescription(This,LanguageId,pErrorDescription)
  362. #define IBackgroundCopyError_GetErrorContextDescription(This,LanguageId,pContextDescription) (This)->lpVtbl->GetErrorContextDescription(This,LanguageId,pContextDescription)
  363. #define IBackgroundCopyError_GetProtocol(This,pProtocol) (This)->lpVtbl->GetProtocol(This,pProtocol)
  364. #else
  365. /*** IUnknown methods ***/
  366. static FORCEINLINE HRESULT IBackgroundCopyError_QueryInterface(IBackgroundCopyError* This,REFIID riid,void **ppvObject) {
  367. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  368. }
  369. static FORCEINLINE ULONG IBackgroundCopyError_AddRef(IBackgroundCopyError* This) {
  370. return This->lpVtbl->AddRef(This);
  371. }
  372. static FORCEINLINE ULONG IBackgroundCopyError_Release(IBackgroundCopyError* This) {
  373. return This->lpVtbl->Release(This);
  374. }
  375. /*** IBackgroundCopyError methods ***/
  376. static FORCEINLINE HRESULT IBackgroundCopyError_GetError(IBackgroundCopyError* This,BG_ERROR_CONTEXT *pContext,HRESULT *pCode) {
  377. return This->lpVtbl->GetError(This,pContext,pCode);
  378. }
  379. static FORCEINLINE HRESULT IBackgroundCopyError_GetFile(IBackgroundCopyError* This,IBackgroundCopyFile **pVal) {
  380. return This->lpVtbl->GetFile(This,pVal);
  381. }
  382. static FORCEINLINE HRESULT IBackgroundCopyError_GetErrorDescription(IBackgroundCopyError* This,DWORD LanguageId,LPWSTR *pErrorDescription) {
  383. return This->lpVtbl->GetErrorDescription(This,LanguageId,pErrorDescription);
  384. }
  385. static FORCEINLINE HRESULT IBackgroundCopyError_GetErrorContextDescription(IBackgroundCopyError* This,DWORD LanguageId,LPWSTR *pContextDescription) {
  386. return This->lpVtbl->GetErrorContextDescription(This,LanguageId,pContextDescription);
  387. }
  388. static FORCEINLINE HRESULT IBackgroundCopyError_GetProtocol(IBackgroundCopyError* This,LPWSTR *pProtocol) {
  389. return This->lpVtbl->GetProtocol(This,pProtocol);
  390. }
  391. #endif
  392. #endif
  393. #endif
  394. #endif /* __IBackgroundCopyError_INTERFACE_DEFINED__ */
  395. /*****************************************************************************
  396. * IBackgroundCopyJob interface
  397. */
  398. #ifndef __IBackgroundCopyJob_INTERFACE_DEFINED__
  399. #define __IBackgroundCopyJob_INTERFACE_DEFINED__
  400. typedef struct _BG_FILE_INFO {
  401. LPWSTR RemoteName;
  402. LPWSTR LocalName;
  403. } BG_FILE_INFO;
  404. typedef struct _BG_JOB_PROGRESS {
  405. UINT64 BytesTotal;
  406. UINT64 BytesTransferred;
  407. ULONG FilesTotal;
  408. ULONG FilesTransferred;
  409. } BG_JOB_PROGRESS;
  410. typedef struct _BG_JOB_TIMES {
  411. FILETIME CreationTime;
  412. FILETIME ModificationTime;
  413. FILETIME TransferCompletionTime;
  414. } BG_JOB_TIMES;
  415. typedef enum __WIDL_bits_generated_name_0000000D {
  416. BG_JOB_PRIORITY_FOREGROUND = 0,
  417. BG_JOB_PRIORITY_HIGH = 1,
  418. BG_JOB_PRIORITY_NORMAL = 2,
  419. BG_JOB_PRIORITY_LOW = 3
  420. } BG_JOB_PRIORITY;
  421. typedef enum __WIDL_bits_generated_name_0000000E {
  422. BG_JOB_STATE_QUEUED = 0,
  423. BG_JOB_STATE_CONNECTING = 1,
  424. BG_JOB_STATE_TRANSFERRING = 2,
  425. BG_JOB_STATE_SUSPENDED = 3,
  426. BG_JOB_STATE_ERROR = 4,
  427. BG_JOB_STATE_TRANSIENT_ERROR = 5,
  428. BG_JOB_STATE_TRANSFERRED = 6,
  429. BG_JOB_STATE_ACKNOWLEDGED = 7,
  430. BG_JOB_STATE_CANCELLED = 8
  431. } BG_JOB_STATE;
  432. typedef enum __WIDL_bits_generated_name_0000000F {
  433. BG_JOB_TYPE_DOWNLOAD = 0,
  434. BG_JOB_TYPE_UPLOAD = 1,
  435. BG_JOB_TYPE_UPLOAD_REPLY = 2
  436. } BG_JOB_TYPE;
  437. typedef enum __WIDL_bits_generated_name_00000010 {
  438. BG_JOB_PROXY_USAGE_PRECONFIG = 0,
  439. BG_JOB_PROXY_USAGE_NO_PROXY = 1,
  440. BG_JOB_PROXY_USAGE_OVERRIDE = 2,
  441. BG_JOB_PROXY_USAGE_AUTODETECT = 3
  442. } BG_JOB_PROXY_USAGE;
  443. DEFINE_GUID(IID_IBackgroundCopyJob, 0x37668d37, 0x507e, 0x4160, 0x93,0x16, 0x26,0x30,0x6d,0x15,0x0b,0x12);
  444. #if defined(__cplusplus) && !defined(CINTERFACE)
  445. MIDL_INTERFACE("37668d37-507e-4160-9316-26306d150b12")
  446. IBackgroundCopyJob : public IUnknown
  447. {
  448. virtual HRESULT STDMETHODCALLTYPE AddFileSet(
  449. ULONG cFileCount,
  450. BG_FILE_INFO *pFileSet) = 0;
  451. virtual HRESULT STDMETHODCALLTYPE AddFile(
  452. LPCWSTR RemoteUrl,
  453. LPCWSTR LocalName) = 0;
  454. virtual HRESULT STDMETHODCALLTYPE EnumFiles(
  455. IEnumBackgroundCopyFiles **pEnum) = 0;
  456. virtual HRESULT STDMETHODCALLTYPE Suspend(
  457. ) = 0;
  458. virtual HRESULT STDMETHODCALLTYPE Resume(
  459. ) = 0;
  460. virtual HRESULT STDMETHODCALLTYPE Cancel(
  461. ) = 0;
  462. virtual HRESULT STDMETHODCALLTYPE Complete(
  463. ) = 0;
  464. virtual HRESULT STDMETHODCALLTYPE GetId(
  465. GUID *pVal) = 0;
  466. virtual HRESULT STDMETHODCALLTYPE GetType(
  467. BG_JOB_TYPE *pVal) = 0;
  468. virtual HRESULT STDMETHODCALLTYPE GetProgress(
  469. BG_JOB_PROGRESS *pVal) = 0;
  470. virtual HRESULT STDMETHODCALLTYPE GetTimes(
  471. BG_JOB_TIMES *pVal) = 0;
  472. virtual HRESULT STDMETHODCALLTYPE GetState(
  473. BG_JOB_STATE *pVal) = 0;
  474. virtual HRESULT STDMETHODCALLTYPE GetError(
  475. IBackgroundCopyError **ppError) = 0;
  476. virtual HRESULT STDMETHODCALLTYPE GetOwner(
  477. LPWSTR *pVal) = 0;
  478. virtual HRESULT STDMETHODCALLTYPE SetDisplayName(
  479. LPCWSTR Val) = 0;
  480. virtual HRESULT STDMETHODCALLTYPE GetDisplayName(
  481. LPWSTR *pVal) = 0;
  482. virtual HRESULT STDMETHODCALLTYPE SetDescription(
  483. LPCWSTR Val) = 0;
  484. virtual HRESULT STDMETHODCALLTYPE GetDescription(
  485. LPWSTR *pVal) = 0;
  486. virtual HRESULT STDMETHODCALLTYPE SetPriority(
  487. BG_JOB_PRIORITY Val) = 0;
  488. virtual HRESULT STDMETHODCALLTYPE GetPriority(
  489. BG_JOB_PRIORITY *pVal) = 0;
  490. virtual HRESULT STDMETHODCALLTYPE SetNotifyFlags(
  491. ULONG Val) = 0;
  492. virtual HRESULT STDMETHODCALLTYPE GetNotifyFlags(
  493. ULONG *pVal) = 0;
  494. virtual HRESULT STDMETHODCALLTYPE SetNotifyInterface(
  495. IUnknown *Val) = 0;
  496. virtual HRESULT STDMETHODCALLTYPE GetNotifyInterface(
  497. IUnknown **pVal) = 0;
  498. virtual HRESULT STDMETHODCALLTYPE SetMinimumRetryDelay(
  499. ULONG Seconds) = 0;
  500. virtual HRESULT STDMETHODCALLTYPE GetMinimumRetryDelay(
  501. ULONG *Seconds) = 0;
  502. virtual HRESULT STDMETHODCALLTYPE SetNoProgressTimeout(
  503. ULONG Seconds) = 0;
  504. virtual HRESULT STDMETHODCALLTYPE GetNoProgressTimeout(
  505. ULONG *Seconds) = 0;
  506. virtual HRESULT STDMETHODCALLTYPE GetErrorCount(
  507. ULONG *Errors) = 0;
  508. virtual HRESULT STDMETHODCALLTYPE SetProxySettings(
  509. BG_JOB_PROXY_USAGE ProxyUsage,
  510. const WCHAR *ProxyList,
  511. const WCHAR *ProxyBypassList) = 0;
  512. virtual HRESULT STDMETHODCALLTYPE GetProxySettings(
  513. BG_JOB_PROXY_USAGE *pProxyUsage,
  514. LPWSTR *pProxyList,
  515. LPWSTR *pProxyBypassList) = 0;
  516. virtual HRESULT STDMETHODCALLTYPE TakeOwnership(
  517. ) = 0;
  518. };
  519. #ifdef __CRT_UUID_DECL
  520. __CRT_UUID_DECL(IBackgroundCopyJob, 0x37668d37, 0x507e, 0x4160, 0x93,0x16, 0x26,0x30,0x6d,0x15,0x0b,0x12)
  521. #endif
  522. #else
  523. typedef struct IBackgroundCopyJobVtbl {
  524. BEGIN_INTERFACE
  525. /*** IUnknown methods ***/
  526. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  527. IBackgroundCopyJob *This,
  528. REFIID riid,
  529. void **ppvObject);
  530. ULONG (STDMETHODCALLTYPE *AddRef)(
  531. IBackgroundCopyJob *This);
  532. ULONG (STDMETHODCALLTYPE *Release)(
  533. IBackgroundCopyJob *This);
  534. /*** IBackgroundCopyJob methods ***/
  535. HRESULT (STDMETHODCALLTYPE *AddFileSet)(
  536. IBackgroundCopyJob *This,
  537. ULONG cFileCount,
  538. BG_FILE_INFO *pFileSet);
  539. HRESULT (STDMETHODCALLTYPE *AddFile)(
  540. IBackgroundCopyJob *This,
  541. LPCWSTR RemoteUrl,
  542. LPCWSTR LocalName);
  543. HRESULT (STDMETHODCALLTYPE *EnumFiles)(
  544. IBackgroundCopyJob *This,
  545. IEnumBackgroundCopyFiles **pEnum);
  546. HRESULT (STDMETHODCALLTYPE *Suspend)(
  547. IBackgroundCopyJob *This);
  548. HRESULT (STDMETHODCALLTYPE *Resume)(
  549. IBackgroundCopyJob *This);
  550. HRESULT (STDMETHODCALLTYPE *Cancel)(
  551. IBackgroundCopyJob *This);
  552. HRESULT (STDMETHODCALLTYPE *Complete)(
  553. IBackgroundCopyJob *This);
  554. HRESULT (STDMETHODCALLTYPE *GetId)(
  555. IBackgroundCopyJob *This,
  556. GUID *pVal);
  557. HRESULT (STDMETHODCALLTYPE *GetType)(
  558. IBackgroundCopyJob *This,
  559. BG_JOB_TYPE *pVal);
  560. HRESULT (STDMETHODCALLTYPE *GetProgress)(
  561. IBackgroundCopyJob *This,
  562. BG_JOB_PROGRESS *pVal);
  563. HRESULT (STDMETHODCALLTYPE *GetTimes)(
  564. IBackgroundCopyJob *This,
  565. BG_JOB_TIMES *pVal);
  566. HRESULT (STDMETHODCALLTYPE *GetState)(
  567. IBackgroundCopyJob *This,
  568. BG_JOB_STATE *pVal);
  569. HRESULT (STDMETHODCALLTYPE *GetError)(
  570. IBackgroundCopyJob *This,
  571. IBackgroundCopyError **ppError);
  572. HRESULT (STDMETHODCALLTYPE *GetOwner)(
  573. IBackgroundCopyJob *This,
  574. LPWSTR *pVal);
  575. HRESULT (STDMETHODCALLTYPE *SetDisplayName)(
  576. IBackgroundCopyJob *This,
  577. LPCWSTR Val);
  578. HRESULT (STDMETHODCALLTYPE *GetDisplayName)(
  579. IBackgroundCopyJob *This,
  580. LPWSTR *pVal);
  581. HRESULT (STDMETHODCALLTYPE *SetDescription)(
  582. IBackgroundCopyJob *This,
  583. LPCWSTR Val);
  584. HRESULT (STDMETHODCALLTYPE *GetDescription)(
  585. IBackgroundCopyJob *This,
  586. LPWSTR *pVal);
  587. HRESULT (STDMETHODCALLTYPE *SetPriority)(
  588. IBackgroundCopyJob *This,
  589. BG_JOB_PRIORITY Val);
  590. HRESULT (STDMETHODCALLTYPE *GetPriority)(
  591. IBackgroundCopyJob *This,
  592. BG_JOB_PRIORITY *pVal);
  593. HRESULT (STDMETHODCALLTYPE *SetNotifyFlags)(
  594. IBackgroundCopyJob *This,
  595. ULONG Val);
  596. HRESULT (STDMETHODCALLTYPE *GetNotifyFlags)(
  597. IBackgroundCopyJob *This,
  598. ULONG *pVal);
  599. HRESULT (STDMETHODCALLTYPE *SetNotifyInterface)(
  600. IBackgroundCopyJob *This,
  601. IUnknown *Val);
  602. HRESULT (STDMETHODCALLTYPE *GetNotifyInterface)(
  603. IBackgroundCopyJob *This,
  604. IUnknown **pVal);
  605. HRESULT (STDMETHODCALLTYPE *SetMinimumRetryDelay)(
  606. IBackgroundCopyJob *This,
  607. ULONG Seconds);
  608. HRESULT (STDMETHODCALLTYPE *GetMinimumRetryDelay)(
  609. IBackgroundCopyJob *This,
  610. ULONG *Seconds);
  611. HRESULT (STDMETHODCALLTYPE *SetNoProgressTimeout)(
  612. IBackgroundCopyJob *This,
  613. ULONG Seconds);
  614. HRESULT (STDMETHODCALLTYPE *GetNoProgressTimeout)(
  615. IBackgroundCopyJob *This,
  616. ULONG *Seconds);
  617. HRESULT (STDMETHODCALLTYPE *GetErrorCount)(
  618. IBackgroundCopyJob *This,
  619. ULONG *Errors);
  620. HRESULT (STDMETHODCALLTYPE *SetProxySettings)(
  621. IBackgroundCopyJob *This,
  622. BG_JOB_PROXY_USAGE ProxyUsage,
  623. const WCHAR *ProxyList,
  624. const WCHAR *ProxyBypassList);
  625. HRESULT (STDMETHODCALLTYPE *GetProxySettings)(
  626. IBackgroundCopyJob *This,
  627. BG_JOB_PROXY_USAGE *pProxyUsage,
  628. LPWSTR *pProxyList,
  629. LPWSTR *pProxyBypassList);
  630. HRESULT (STDMETHODCALLTYPE *TakeOwnership)(
  631. IBackgroundCopyJob *This);
  632. END_INTERFACE
  633. } IBackgroundCopyJobVtbl;
  634. interface IBackgroundCopyJob {
  635. CONST_VTBL IBackgroundCopyJobVtbl* lpVtbl;
  636. };
  637. #ifdef COBJMACROS
  638. #ifndef WIDL_C_INLINE_WRAPPERS
  639. /*** IUnknown methods ***/
  640. #define IBackgroundCopyJob_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  641. #define IBackgroundCopyJob_AddRef(This) (This)->lpVtbl->AddRef(This)
  642. #define IBackgroundCopyJob_Release(This) (This)->lpVtbl->Release(This)
  643. /*** IBackgroundCopyJob methods ***/
  644. #define IBackgroundCopyJob_AddFileSet(This,cFileCount,pFileSet) (This)->lpVtbl->AddFileSet(This,cFileCount,pFileSet)
  645. #define IBackgroundCopyJob_AddFile(This,RemoteUrl,LocalName) (This)->lpVtbl->AddFile(This,RemoteUrl,LocalName)
  646. #define IBackgroundCopyJob_EnumFiles(This,pEnum) (This)->lpVtbl->EnumFiles(This,pEnum)
  647. #define IBackgroundCopyJob_Suspend(This) (This)->lpVtbl->Suspend(This)
  648. #define IBackgroundCopyJob_Resume(This) (This)->lpVtbl->Resume(This)
  649. #define IBackgroundCopyJob_Cancel(This) (This)->lpVtbl->Cancel(This)
  650. #define IBackgroundCopyJob_Complete(This) (This)->lpVtbl->Complete(This)
  651. #define IBackgroundCopyJob_GetId(This,pVal) (This)->lpVtbl->GetId(This,pVal)
  652. #define IBackgroundCopyJob_GetType(This,pVal) (This)->lpVtbl->GetType(This,pVal)
  653. #define IBackgroundCopyJob_GetProgress(This,pVal) (This)->lpVtbl->GetProgress(This,pVal)
  654. #define IBackgroundCopyJob_GetTimes(This,pVal) (This)->lpVtbl->GetTimes(This,pVal)
  655. #define IBackgroundCopyJob_GetState(This,pVal) (This)->lpVtbl->GetState(This,pVal)
  656. #define IBackgroundCopyJob_GetError(This,ppError) (This)->lpVtbl->GetError(This,ppError)
  657. #define IBackgroundCopyJob_GetOwner(This,pVal) (This)->lpVtbl->GetOwner(This,pVal)
  658. #define IBackgroundCopyJob_SetDisplayName(This,Val) (This)->lpVtbl->SetDisplayName(This,Val)
  659. #define IBackgroundCopyJob_GetDisplayName(This,pVal) (This)->lpVtbl->GetDisplayName(This,pVal)
  660. #define IBackgroundCopyJob_SetDescription(This,Val) (This)->lpVtbl->SetDescription(This,Val)
  661. #define IBackgroundCopyJob_GetDescription(This,pVal) (This)->lpVtbl->GetDescription(This,pVal)
  662. #define IBackgroundCopyJob_SetPriority(This,Val) (This)->lpVtbl->SetPriority(This,Val)
  663. #define IBackgroundCopyJob_GetPriority(This,pVal) (This)->lpVtbl->GetPriority(This,pVal)
  664. #define IBackgroundCopyJob_SetNotifyFlags(This,Val) (This)->lpVtbl->SetNotifyFlags(This,Val)
  665. #define IBackgroundCopyJob_GetNotifyFlags(This,pVal) (This)->lpVtbl->GetNotifyFlags(This,pVal)
  666. #define IBackgroundCopyJob_SetNotifyInterface(This,Val) (This)->lpVtbl->SetNotifyInterface(This,Val)
  667. #define IBackgroundCopyJob_GetNotifyInterface(This,pVal) (This)->lpVtbl->GetNotifyInterface(This,pVal)
  668. #define IBackgroundCopyJob_SetMinimumRetryDelay(This,Seconds) (This)->lpVtbl->SetMinimumRetryDelay(This,Seconds)
  669. #define IBackgroundCopyJob_GetMinimumRetryDelay(This,Seconds) (This)->lpVtbl->GetMinimumRetryDelay(This,Seconds)
  670. #define IBackgroundCopyJob_SetNoProgressTimeout(This,Seconds) (This)->lpVtbl->SetNoProgressTimeout(This,Seconds)
  671. #define IBackgroundCopyJob_GetNoProgressTimeout(This,Seconds) (This)->lpVtbl->GetNoProgressTimeout(This,Seconds)
  672. #define IBackgroundCopyJob_GetErrorCount(This,Errors) (This)->lpVtbl->GetErrorCount(This,Errors)
  673. #define IBackgroundCopyJob_SetProxySettings(This,ProxyUsage,ProxyList,ProxyBypassList) (This)->lpVtbl->SetProxySettings(This,ProxyUsage,ProxyList,ProxyBypassList)
  674. #define IBackgroundCopyJob_GetProxySettings(This,pProxyUsage,pProxyList,pProxyBypassList) (This)->lpVtbl->GetProxySettings(This,pProxyUsage,pProxyList,pProxyBypassList)
  675. #define IBackgroundCopyJob_TakeOwnership(This) (This)->lpVtbl->TakeOwnership(This)
  676. #else
  677. /*** IUnknown methods ***/
  678. static FORCEINLINE HRESULT IBackgroundCopyJob_QueryInterface(IBackgroundCopyJob* This,REFIID riid,void **ppvObject) {
  679. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  680. }
  681. static FORCEINLINE ULONG IBackgroundCopyJob_AddRef(IBackgroundCopyJob* This) {
  682. return This->lpVtbl->AddRef(This);
  683. }
  684. static FORCEINLINE ULONG IBackgroundCopyJob_Release(IBackgroundCopyJob* This) {
  685. return This->lpVtbl->Release(This);
  686. }
  687. /*** IBackgroundCopyJob methods ***/
  688. static FORCEINLINE HRESULT IBackgroundCopyJob_AddFileSet(IBackgroundCopyJob* This,ULONG cFileCount,BG_FILE_INFO *pFileSet) {
  689. return This->lpVtbl->AddFileSet(This,cFileCount,pFileSet);
  690. }
  691. static FORCEINLINE HRESULT IBackgroundCopyJob_AddFile(IBackgroundCopyJob* This,LPCWSTR RemoteUrl,LPCWSTR LocalName) {
  692. return This->lpVtbl->AddFile(This,RemoteUrl,LocalName);
  693. }
  694. static FORCEINLINE HRESULT IBackgroundCopyJob_EnumFiles(IBackgroundCopyJob* This,IEnumBackgroundCopyFiles **pEnum) {
  695. return This->lpVtbl->EnumFiles(This,pEnum);
  696. }
  697. static FORCEINLINE HRESULT IBackgroundCopyJob_Suspend(IBackgroundCopyJob* This) {
  698. return This->lpVtbl->Suspend(This);
  699. }
  700. static FORCEINLINE HRESULT IBackgroundCopyJob_Resume(IBackgroundCopyJob* This) {
  701. return This->lpVtbl->Resume(This);
  702. }
  703. static FORCEINLINE HRESULT IBackgroundCopyJob_Cancel(IBackgroundCopyJob* This) {
  704. return This->lpVtbl->Cancel(This);
  705. }
  706. static FORCEINLINE HRESULT IBackgroundCopyJob_Complete(IBackgroundCopyJob* This) {
  707. return This->lpVtbl->Complete(This);
  708. }
  709. static FORCEINLINE HRESULT IBackgroundCopyJob_GetId(IBackgroundCopyJob* This,GUID *pVal) {
  710. return This->lpVtbl->GetId(This,pVal);
  711. }
  712. static FORCEINLINE HRESULT IBackgroundCopyJob_GetType(IBackgroundCopyJob* This,BG_JOB_TYPE *pVal) {
  713. return This->lpVtbl->GetType(This,pVal);
  714. }
  715. static FORCEINLINE HRESULT IBackgroundCopyJob_GetProgress(IBackgroundCopyJob* This,BG_JOB_PROGRESS *pVal) {
  716. return This->lpVtbl->GetProgress(This,pVal);
  717. }
  718. static FORCEINLINE HRESULT IBackgroundCopyJob_GetTimes(IBackgroundCopyJob* This,BG_JOB_TIMES *pVal) {
  719. return This->lpVtbl->GetTimes(This,pVal);
  720. }
  721. static FORCEINLINE HRESULT IBackgroundCopyJob_GetState(IBackgroundCopyJob* This,BG_JOB_STATE *pVal) {
  722. return This->lpVtbl->GetState(This,pVal);
  723. }
  724. static FORCEINLINE HRESULT IBackgroundCopyJob_GetError(IBackgroundCopyJob* This,IBackgroundCopyError **ppError) {
  725. return This->lpVtbl->GetError(This,ppError);
  726. }
  727. static FORCEINLINE HRESULT IBackgroundCopyJob_GetOwner(IBackgroundCopyJob* This,LPWSTR *pVal) {
  728. return This->lpVtbl->GetOwner(This,pVal);
  729. }
  730. static FORCEINLINE HRESULT IBackgroundCopyJob_SetDisplayName(IBackgroundCopyJob* This,LPCWSTR Val) {
  731. return This->lpVtbl->SetDisplayName(This,Val);
  732. }
  733. static FORCEINLINE HRESULT IBackgroundCopyJob_GetDisplayName(IBackgroundCopyJob* This,LPWSTR *pVal) {
  734. return This->lpVtbl->GetDisplayName(This,pVal);
  735. }
  736. static FORCEINLINE HRESULT IBackgroundCopyJob_SetDescription(IBackgroundCopyJob* This,LPCWSTR Val) {
  737. return This->lpVtbl->SetDescription(This,Val);
  738. }
  739. static FORCEINLINE HRESULT IBackgroundCopyJob_GetDescription(IBackgroundCopyJob* This,LPWSTR *pVal) {
  740. return This->lpVtbl->GetDescription(This,pVal);
  741. }
  742. static FORCEINLINE HRESULT IBackgroundCopyJob_SetPriority(IBackgroundCopyJob* This,BG_JOB_PRIORITY Val) {
  743. return This->lpVtbl->SetPriority(This,Val);
  744. }
  745. static FORCEINLINE HRESULT IBackgroundCopyJob_GetPriority(IBackgroundCopyJob* This,BG_JOB_PRIORITY *pVal) {
  746. return This->lpVtbl->GetPriority(This,pVal);
  747. }
  748. static FORCEINLINE HRESULT IBackgroundCopyJob_SetNotifyFlags(IBackgroundCopyJob* This,ULONG Val) {
  749. return This->lpVtbl->SetNotifyFlags(This,Val);
  750. }
  751. static FORCEINLINE HRESULT IBackgroundCopyJob_GetNotifyFlags(IBackgroundCopyJob* This,ULONG *pVal) {
  752. return This->lpVtbl->GetNotifyFlags(This,pVal);
  753. }
  754. static FORCEINLINE HRESULT IBackgroundCopyJob_SetNotifyInterface(IBackgroundCopyJob* This,IUnknown *Val) {
  755. return This->lpVtbl->SetNotifyInterface(This,Val);
  756. }
  757. static FORCEINLINE HRESULT IBackgroundCopyJob_GetNotifyInterface(IBackgroundCopyJob* This,IUnknown **pVal) {
  758. return This->lpVtbl->GetNotifyInterface(This,pVal);
  759. }
  760. static FORCEINLINE HRESULT IBackgroundCopyJob_SetMinimumRetryDelay(IBackgroundCopyJob* This,ULONG Seconds) {
  761. return This->lpVtbl->SetMinimumRetryDelay(This,Seconds);
  762. }
  763. static FORCEINLINE HRESULT IBackgroundCopyJob_GetMinimumRetryDelay(IBackgroundCopyJob* This,ULONG *Seconds) {
  764. return This->lpVtbl->GetMinimumRetryDelay(This,Seconds);
  765. }
  766. static FORCEINLINE HRESULT IBackgroundCopyJob_SetNoProgressTimeout(IBackgroundCopyJob* This,ULONG Seconds) {
  767. return This->lpVtbl->SetNoProgressTimeout(This,Seconds);
  768. }
  769. static FORCEINLINE HRESULT IBackgroundCopyJob_GetNoProgressTimeout(IBackgroundCopyJob* This,ULONG *Seconds) {
  770. return This->lpVtbl->GetNoProgressTimeout(This,Seconds);
  771. }
  772. static FORCEINLINE HRESULT IBackgroundCopyJob_GetErrorCount(IBackgroundCopyJob* This,ULONG *Errors) {
  773. return This->lpVtbl->GetErrorCount(This,Errors);
  774. }
  775. static FORCEINLINE HRESULT IBackgroundCopyJob_SetProxySettings(IBackgroundCopyJob* This,BG_JOB_PROXY_USAGE ProxyUsage,const WCHAR *ProxyList,const WCHAR *ProxyBypassList) {
  776. return This->lpVtbl->SetProxySettings(This,ProxyUsage,ProxyList,ProxyBypassList);
  777. }
  778. static FORCEINLINE HRESULT IBackgroundCopyJob_GetProxySettings(IBackgroundCopyJob* This,BG_JOB_PROXY_USAGE *pProxyUsage,LPWSTR *pProxyList,LPWSTR *pProxyBypassList) {
  779. return This->lpVtbl->GetProxySettings(This,pProxyUsage,pProxyList,pProxyBypassList);
  780. }
  781. static FORCEINLINE HRESULT IBackgroundCopyJob_TakeOwnership(IBackgroundCopyJob* This) {
  782. return This->lpVtbl->TakeOwnership(This);
  783. }
  784. #endif
  785. #endif
  786. #endif
  787. #endif /* __IBackgroundCopyJob_INTERFACE_DEFINED__ */
  788. /*****************************************************************************
  789. * IEnumBackgroundCopyJobs interface
  790. */
  791. #ifndef __IEnumBackgroundCopyJobs_INTERFACE_DEFINED__
  792. #define __IEnumBackgroundCopyJobs_INTERFACE_DEFINED__
  793. DEFINE_GUID(IID_IEnumBackgroundCopyJobs, 0x1af4f612, 0x3b71, 0x466f, 0x8f,0x58, 0x7b,0x6f,0x73,0xac,0x57,0xad);
  794. #if defined(__cplusplus) && !defined(CINTERFACE)
  795. MIDL_INTERFACE("1af4f612-3b71-466f-8f58-7b6f73ac57ad")
  796. IEnumBackgroundCopyJobs : public IUnknown
  797. {
  798. virtual HRESULT STDMETHODCALLTYPE Next(
  799. ULONG celt,
  800. IBackgroundCopyJob **rgelt,
  801. ULONG *pceltFetched) = 0;
  802. virtual HRESULT STDMETHODCALLTYPE Skip(
  803. ULONG celt) = 0;
  804. virtual HRESULT STDMETHODCALLTYPE Reset(
  805. ) = 0;
  806. virtual HRESULT STDMETHODCALLTYPE Clone(
  807. IEnumBackgroundCopyJobs **ppenum) = 0;
  808. virtual HRESULT STDMETHODCALLTYPE GetCount(
  809. ULONG *puCount) = 0;
  810. };
  811. #ifdef __CRT_UUID_DECL
  812. __CRT_UUID_DECL(IEnumBackgroundCopyJobs, 0x1af4f612, 0x3b71, 0x466f, 0x8f,0x58, 0x7b,0x6f,0x73,0xac,0x57,0xad)
  813. #endif
  814. #else
  815. typedef struct IEnumBackgroundCopyJobsVtbl {
  816. BEGIN_INTERFACE
  817. /*** IUnknown methods ***/
  818. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  819. IEnumBackgroundCopyJobs *This,
  820. REFIID riid,
  821. void **ppvObject);
  822. ULONG (STDMETHODCALLTYPE *AddRef)(
  823. IEnumBackgroundCopyJobs *This);
  824. ULONG (STDMETHODCALLTYPE *Release)(
  825. IEnumBackgroundCopyJobs *This);
  826. /*** IEnumBackgroundCopyJobs methods ***/
  827. HRESULT (STDMETHODCALLTYPE *Next)(
  828. IEnumBackgroundCopyJobs *This,
  829. ULONG celt,
  830. IBackgroundCopyJob **rgelt,
  831. ULONG *pceltFetched);
  832. HRESULT (STDMETHODCALLTYPE *Skip)(
  833. IEnumBackgroundCopyJobs *This,
  834. ULONG celt);
  835. HRESULT (STDMETHODCALLTYPE *Reset)(
  836. IEnumBackgroundCopyJobs *This);
  837. HRESULT (STDMETHODCALLTYPE *Clone)(
  838. IEnumBackgroundCopyJobs *This,
  839. IEnumBackgroundCopyJobs **ppenum);
  840. HRESULT (STDMETHODCALLTYPE *GetCount)(
  841. IEnumBackgroundCopyJobs *This,
  842. ULONG *puCount);
  843. END_INTERFACE
  844. } IEnumBackgroundCopyJobsVtbl;
  845. interface IEnumBackgroundCopyJobs {
  846. CONST_VTBL IEnumBackgroundCopyJobsVtbl* lpVtbl;
  847. };
  848. #ifdef COBJMACROS
  849. #ifndef WIDL_C_INLINE_WRAPPERS
  850. /*** IUnknown methods ***/
  851. #define IEnumBackgroundCopyJobs_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  852. #define IEnumBackgroundCopyJobs_AddRef(This) (This)->lpVtbl->AddRef(This)
  853. #define IEnumBackgroundCopyJobs_Release(This) (This)->lpVtbl->Release(This)
  854. /*** IEnumBackgroundCopyJobs methods ***/
  855. #define IEnumBackgroundCopyJobs_Next(This,celt,rgelt,pceltFetched) (This)->lpVtbl->Next(This,celt,rgelt,pceltFetched)
  856. #define IEnumBackgroundCopyJobs_Skip(This,celt) (This)->lpVtbl->Skip(This,celt)
  857. #define IEnumBackgroundCopyJobs_Reset(This) (This)->lpVtbl->Reset(This)
  858. #define IEnumBackgroundCopyJobs_Clone(This,ppenum) (This)->lpVtbl->Clone(This,ppenum)
  859. #define IEnumBackgroundCopyJobs_GetCount(This,puCount) (This)->lpVtbl->GetCount(This,puCount)
  860. #else
  861. /*** IUnknown methods ***/
  862. static FORCEINLINE HRESULT IEnumBackgroundCopyJobs_QueryInterface(IEnumBackgroundCopyJobs* This,REFIID riid,void **ppvObject) {
  863. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  864. }
  865. static FORCEINLINE ULONG IEnumBackgroundCopyJobs_AddRef(IEnumBackgroundCopyJobs* This) {
  866. return This->lpVtbl->AddRef(This);
  867. }
  868. static FORCEINLINE ULONG IEnumBackgroundCopyJobs_Release(IEnumBackgroundCopyJobs* This) {
  869. return This->lpVtbl->Release(This);
  870. }
  871. /*** IEnumBackgroundCopyJobs methods ***/
  872. static FORCEINLINE HRESULT IEnumBackgroundCopyJobs_Next(IEnumBackgroundCopyJobs* This,ULONG celt,IBackgroundCopyJob **rgelt,ULONG *pceltFetched) {
  873. return This->lpVtbl->Next(This,celt,rgelt,pceltFetched);
  874. }
  875. static FORCEINLINE HRESULT IEnumBackgroundCopyJobs_Skip(IEnumBackgroundCopyJobs* This,ULONG celt) {
  876. return This->lpVtbl->Skip(This,celt);
  877. }
  878. static FORCEINLINE HRESULT IEnumBackgroundCopyJobs_Reset(IEnumBackgroundCopyJobs* This) {
  879. return This->lpVtbl->Reset(This);
  880. }
  881. static FORCEINLINE HRESULT IEnumBackgroundCopyJobs_Clone(IEnumBackgroundCopyJobs* This,IEnumBackgroundCopyJobs **ppenum) {
  882. return This->lpVtbl->Clone(This,ppenum);
  883. }
  884. static FORCEINLINE HRESULT IEnumBackgroundCopyJobs_GetCount(IEnumBackgroundCopyJobs* This,ULONG *puCount) {
  885. return This->lpVtbl->GetCount(This,puCount);
  886. }
  887. #endif
  888. #endif
  889. #endif
  890. #endif /* __IEnumBackgroundCopyJobs_INTERFACE_DEFINED__ */
  891. /*****************************************************************************
  892. * IBackgroundCopyCallback interface
  893. */
  894. #ifndef __IBackgroundCopyCallback_INTERFACE_DEFINED__
  895. #define __IBackgroundCopyCallback_INTERFACE_DEFINED__
  896. DEFINE_GUID(IID_IBackgroundCopyCallback, 0x97ea99c7, 0x0186, 0x4ad4, 0x8d,0xf9, 0xc5,0xb4,0xe0,0xed,0x6b,0x22);
  897. #if defined(__cplusplus) && !defined(CINTERFACE)
  898. MIDL_INTERFACE("97ea99c7-0186-4ad4-8df9-c5b4e0ed6b22")
  899. IBackgroundCopyCallback : public IUnknown
  900. {
  901. virtual HRESULT STDMETHODCALLTYPE JobTransferred(
  902. IBackgroundCopyJob *pJob) = 0;
  903. virtual HRESULT STDMETHODCALLTYPE JobError(
  904. IBackgroundCopyJob *pJob,
  905. IBackgroundCopyError *pError) = 0;
  906. virtual HRESULT STDMETHODCALLTYPE JobModification(
  907. IBackgroundCopyJob *pJob,
  908. DWORD dwReserved) = 0;
  909. };
  910. #ifdef __CRT_UUID_DECL
  911. __CRT_UUID_DECL(IBackgroundCopyCallback, 0x97ea99c7, 0x0186, 0x4ad4, 0x8d,0xf9, 0xc5,0xb4,0xe0,0xed,0x6b,0x22)
  912. #endif
  913. #else
  914. typedef struct IBackgroundCopyCallbackVtbl {
  915. BEGIN_INTERFACE
  916. /*** IUnknown methods ***/
  917. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  918. IBackgroundCopyCallback *This,
  919. REFIID riid,
  920. void **ppvObject);
  921. ULONG (STDMETHODCALLTYPE *AddRef)(
  922. IBackgroundCopyCallback *This);
  923. ULONG (STDMETHODCALLTYPE *Release)(
  924. IBackgroundCopyCallback *This);
  925. /*** IBackgroundCopyCallback methods ***/
  926. HRESULT (STDMETHODCALLTYPE *JobTransferred)(
  927. IBackgroundCopyCallback *This,
  928. IBackgroundCopyJob *pJob);
  929. HRESULT (STDMETHODCALLTYPE *JobError)(
  930. IBackgroundCopyCallback *This,
  931. IBackgroundCopyJob *pJob,
  932. IBackgroundCopyError *pError);
  933. HRESULT (STDMETHODCALLTYPE *JobModification)(
  934. IBackgroundCopyCallback *This,
  935. IBackgroundCopyJob *pJob,
  936. DWORD dwReserved);
  937. END_INTERFACE
  938. } IBackgroundCopyCallbackVtbl;
  939. interface IBackgroundCopyCallback {
  940. CONST_VTBL IBackgroundCopyCallbackVtbl* lpVtbl;
  941. };
  942. #ifdef COBJMACROS
  943. #ifndef WIDL_C_INLINE_WRAPPERS
  944. /*** IUnknown methods ***/
  945. #define IBackgroundCopyCallback_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  946. #define IBackgroundCopyCallback_AddRef(This) (This)->lpVtbl->AddRef(This)
  947. #define IBackgroundCopyCallback_Release(This) (This)->lpVtbl->Release(This)
  948. /*** IBackgroundCopyCallback methods ***/
  949. #define IBackgroundCopyCallback_JobTransferred(This,pJob) (This)->lpVtbl->JobTransferred(This,pJob)
  950. #define IBackgroundCopyCallback_JobError(This,pJob,pError) (This)->lpVtbl->JobError(This,pJob,pError)
  951. #define IBackgroundCopyCallback_JobModification(This,pJob,dwReserved) (This)->lpVtbl->JobModification(This,pJob,dwReserved)
  952. #else
  953. /*** IUnknown methods ***/
  954. static FORCEINLINE HRESULT IBackgroundCopyCallback_QueryInterface(IBackgroundCopyCallback* This,REFIID riid,void **ppvObject) {
  955. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  956. }
  957. static FORCEINLINE ULONG IBackgroundCopyCallback_AddRef(IBackgroundCopyCallback* This) {
  958. return This->lpVtbl->AddRef(This);
  959. }
  960. static FORCEINLINE ULONG IBackgroundCopyCallback_Release(IBackgroundCopyCallback* This) {
  961. return This->lpVtbl->Release(This);
  962. }
  963. /*** IBackgroundCopyCallback methods ***/
  964. static FORCEINLINE HRESULT IBackgroundCopyCallback_JobTransferred(IBackgroundCopyCallback* This,IBackgroundCopyJob *pJob) {
  965. return This->lpVtbl->JobTransferred(This,pJob);
  966. }
  967. static FORCEINLINE HRESULT IBackgroundCopyCallback_JobError(IBackgroundCopyCallback* This,IBackgroundCopyJob *pJob,IBackgroundCopyError *pError) {
  968. return This->lpVtbl->JobError(This,pJob,pError);
  969. }
  970. static FORCEINLINE HRESULT IBackgroundCopyCallback_JobModification(IBackgroundCopyCallback* This,IBackgroundCopyJob *pJob,DWORD dwReserved) {
  971. return This->lpVtbl->JobModification(This,pJob,dwReserved);
  972. }
  973. #endif
  974. #endif
  975. #endif
  976. #endif /* __IBackgroundCopyCallback_INTERFACE_DEFINED__ */
  977. /*****************************************************************************
  978. * IBackgroundCopyManager interface
  979. */
  980. #ifndef __IBackgroundCopyManager_INTERFACE_DEFINED__
  981. #define __IBackgroundCopyManager_INTERFACE_DEFINED__
  982. #define BG_JOB_ENUM_ALL_USERS 0x0001
  983. DEFINE_GUID(IID_IBackgroundCopyManager, 0x5ce34c0d, 0x0dc9, 0x4c1f, 0x89,0x7c, 0xda,0xa1,0xb7,0x8c,0xee,0x7c);
  984. #if defined(__cplusplus) && !defined(CINTERFACE)
  985. MIDL_INTERFACE("5ce34c0d-0dc9-4c1f-897c-daa1b78cee7c")
  986. IBackgroundCopyManager : public IUnknown
  987. {
  988. virtual HRESULT STDMETHODCALLTYPE CreateJob(
  989. LPCWSTR DisplayName,
  990. BG_JOB_TYPE Type,
  991. GUID *pJobId,
  992. IBackgroundCopyJob **ppJob) = 0;
  993. virtual HRESULT STDMETHODCALLTYPE GetJob(
  994. REFGUID jobID,
  995. IBackgroundCopyJob **ppJob) = 0;
  996. virtual HRESULT STDMETHODCALLTYPE EnumJobs(
  997. DWORD dwFlags,
  998. IEnumBackgroundCopyJobs **ppEnum) = 0;
  999. virtual HRESULT STDMETHODCALLTYPE GetErrorDescription(
  1000. HRESULT hResult,
  1001. DWORD LanguageId,
  1002. LPWSTR *pErrorDescription) = 0;
  1003. };
  1004. #ifdef __CRT_UUID_DECL
  1005. __CRT_UUID_DECL(IBackgroundCopyManager, 0x5ce34c0d, 0x0dc9, 0x4c1f, 0x89,0x7c, 0xda,0xa1,0xb7,0x8c,0xee,0x7c)
  1006. #endif
  1007. #else
  1008. typedef struct IBackgroundCopyManagerVtbl {
  1009. BEGIN_INTERFACE
  1010. /*** IUnknown methods ***/
  1011. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  1012. IBackgroundCopyManager *This,
  1013. REFIID riid,
  1014. void **ppvObject);
  1015. ULONG (STDMETHODCALLTYPE *AddRef)(
  1016. IBackgroundCopyManager *This);
  1017. ULONG (STDMETHODCALLTYPE *Release)(
  1018. IBackgroundCopyManager *This);
  1019. /*** IBackgroundCopyManager methods ***/
  1020. HRESULT (STDMETHODCALLTYPE *CreateJob)(
  1021. IBackgroundCopyManager *This,
  1022. LPCWSTR DisplayName,
  1023. BG_JOB_TYPE Type,
  1024. GUID *pJobId,
  1025. IBackgroundCopyJob **ppJob);
  1026. HRESULT (STDMETHODCALLTYPE *GetJob)(
  1027. IBackgroundCopyManager *This,
  1028. REFGUID jobID,
  1029. IBackgroundCopyJob **ppJob);
  1030. HRESULT (STDMETHODCALLTYPE *EnumJobs)(
  1031. IBackgroundCopyManager *This,
  1032. DWORD dwFlags,
  1033. IEnumBackgroundCopyJobs **ppEnum);
  1034. HRESULT (STDMETHODCALLTYPE *GetErrorDescription)(
  1035. IBackgroundCopyManager *This,
  1036. HRESULT hResult,
  1037. DWORD LanguageId,
  1038. LPWSTR *pErrorDescription);
  1039. END_INTERFACE
  1040. } IBackgroundCopyManagerVtbl;
  1041. interface IBackgroundCopyManager {
  1042. CONST_VTBL IBackgroundCopyManagerVtbl* lpVtbl;
  1043. };
  1044. #ifdef COBJMACROS
  1045. #ifndef WIDL_C_INLINE_WRAPPERS
  1046. /*** IUnknown methods ***/
  1047. #define IBackgroundCopyManager_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1048. #define IBackgroundCopyManager_AddRef(This) (This)->lpVtbl->AddRef(This)
  1049. #define IBackgroundCopyManager_Release(This) (This)->lpVtbl->Release(This)
  1050. /*** IBackgroundCopyManager methods ***/
  1051. #define IBackgroundCopyManager_CreateJob(This,DisplayName,Type,pJobId,ppJob) (This)->lpVtbl->CreateJob(This,DisplayName,Type,pJobId,ppJob)
  1052. #define IBackgroundCopyManager_GetJob(This,jobID,ppJob) (This)->lpVtbl->GetJob(This,jobID,ppJob)
  1053. #define IBackgroundCopyManager_EnumJobs(This,dwFlags,ppEnum) (This)->lpVtbl->EnumJobs(This,dwFlags,ppEnum)
  1054. #define IBackgroundCopyManager_GetErrorDescription(This,hResult,LanguageId,pErrorDescription) (This)->lpVtbl->GetErrorDescription(This,hResult,LanguageId,pErrorDescription)
  1055. #else
  1056. /*** IUnknown methods ***/
  1057. static FORCEINLINE HRESULT IBackgroundCopyManager_QueryInterface(IBackgroundCopyManager* This,REFIID riid,void **ppvObject) {
  1058. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  1059. }
  1060. static FORCEINLINE ULONG IBackgroundCopyManager_AddRef(IBackgroundCopyManager* This) {
  1061. return This->lpVtbl->AddRef(This);
  1062. }
  1063. static FORCEINLINE ULONG IBackgroundCopyManager_Release(IBackgroundCopyManager* This) {
  1064. return This->lpVtbl->Release(This);
  1065. }
  1066. /*** IBackgroundCopyManager methods ***/
  1067. static FORCEINLINE HRESULT IBackgroundCopyManager_CreateJob(IBackgroundCopyManager* This,LPCWSTR DisplayName,BG_JOB_TYPE Type,GUID *pJobId,IBackgroundCopyJob **ppJob) {
  1068. return This->lpVtbl->CreateJob(This,DisplayName,Type,pJobId,ppJob);
  1069. }
  1070. static FORCEINLINE HRESULT IBackgroundCopyManager_GetJob(IBackgroundCopyManager* This,REFGUID jobID,IBackgroundCopyJob **ppJob) {
  1071. return This->lpVtbl->GetJob(This,jobID,ppJob);
  1072. }
  1073. static FORCEINLINE HRESULT IBackgroundCopyManager_EnumJobs(IBackgroundCopyManager* This,DWORD dwFlags,IEnumBackgroundCopyJobs **ppEnum) {
  1074. return This->lpVtbl->EnumJobs(This,dwFlags,ppEnum);
  1075. }
  1076. static FORCEINLINE HRESULT IBackgroundCopyManager_GetErrorDescription(IBackgroundCopyManager* This,HRESULT hResult,DWORD LanguageId,LPWSTR *pErrorDescription) {
  1077. return This->lpVtbl->GetErrorDescription(This,hResult,LanguageId,pErrorDescription);
  1078. }
  1079. #endif
  1080. #endif
  1081. #endif
  1082. #endif /* __IBackgroundCopyManager_INTERFACE_DEFINED__ */
  1083. #ifndef __BackgroundCopyManager_LIBRARY_DEFINED__
  1084. #define __BackgroundCopyManager_LIBRARY_DEFINED__
  1085. DEFINE_GUID(LIBID_BackgroundCopyManager, 0x1deeb74f, 0x7915, 0x4560, 0xb5,0x58, 0x91,0x8c,0x83,0xf1,0x76,0xa6);
  1086. /*****************************************************************************
  1087. * BackgroundCopyManager coclass
  1088. */
  1089. DEFINE_GUID(CLSID_BackgroundCopyManager, 0x4991d34b, 0x80a1, 0x4291, 0x83,0xb6, 0x33,0x28,0x36,0x6b,0x90,0x97);
  1090. #ifdef __cplusplus
  1091. class DECLSPEC_UUID("4991d34b-80a1-4291-83b6-3328366b9097") BackgroundCopyManager;
  1092. #ifdef __CRT_UUID_DECL
  1093. __CRT_UUID_DECL(BackgroundCopyManager, 0x4991d34b, 0x80a1, 0x4291, 0x83,0xb6, 0x33,0x28,0x36,0x6b,0x90,0x97)
  1094. #endif
  1095. #endif
  1096. #ifndef __IBackgroundCopyCallback_FWD_DEFINED__
  1097. #define __IBackgroundCopyCallback_FWD_DEFINED__
  1098. typedef interface IBackgroundCopyCallback IBackgroundCopyCallback;
  1099. #ifdef __cplusplus
  1100. interface IBackgroundCopyCallback;
  1101. #endif /* __cplusplus */
  1102. #endif
  1103. #endif /* __BackgroundCopyManager_LIBRARY_DEFINED__ */
  1104. #include "bits1_5.h"
  1105. /* Begin additional prototypes for all interfaces */
  1106. /* End additional prototypes */
  1107. #ifdef __cplusplus
  1108. }
  1109. #endif
  1110. #endif /* __bits_h__ */