36 IBackgroundCopyManager_AddRef(iface);
70 IBackgroundCopyJob_AddRef(*ppJob);
97 IBackgroundCopyJob3_AddRef(&
cur->IBackgroundCopyJob3_iface);
118 FIXME(
"(0x%08x 0x%x %p): stub\n",
hr,
langid, error_description);
135 {
NULL, -1, 0, 0, 0, 0 },
143 TRACE(
"(%p)\n", ppObj);
167 IBackgroundCopyJob3_Release(&
job->IBackgroundCopyJob3_iface);
179 if (
job->state == BG_JOB_STATE_ACKNOWLEDGED ||
job->state == BG_JOB_STATE_CANCELLED)
182 IBackgroundCopyJob3_Release(&
job->IBackgroundCopyJob3_iface);
184 else if (
job->state == BG_JOB_STATE_QUEUED)
189 else if (
job->state == BG_JOB_STATE_CONNECTING
190 ||
job->state == BG_JOB_STATE_TRANSFERRING)
192 ERR(
"Invalid state for job %p: %d\n",
job,
job->state);
static ULONG WINAPI BackgroundCopyManager_Release(IBackgroundCopyManager *iface)
static HRESULT WINAPI BackgroundCopyManager_CreateJob(IBackgroundCopyManager *iface, LPCWSTR DisplayName, BG_JOB_TYPE Type, GUID *pJobId, IBackgroundCopyJob **ppJob)
HRESULT enum_copy_job_create(BackgroundCopyManagerImpl *qmgr, IEnumBackgroundCopyJobs **enumjob)
BackgroundCopyManagerImpl globalMgr
__WINE_SERVER_LIST_INLINE void list_add_head(struct list *list, struct list *elem)
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
DWORD WINAPI WaitForMultipleObjects(IN DWORD nCount, IN CONST HANDLE *lpHandles, IN BOOL bWaitAll, IN DWORD dwMilliseconds)
static HRESULT WINAPI BackgroundCopyManager_GetErrorDescription(IBackgroundCopyManager *iface, HRESULT hr, DWORD langid, LPWSTR *error_description)
#define LIST_FOR_EACH_ENTRY(elem, list, type, field)
WINE_DEFAULT_DEBUG_CHANNEL(qmgr)
__WINE_SERVER_LIST_INLINE void list_remove(struct list *elem)
static ULONG WINAPI BackgroundCopyManager_AddRef(IBackgroundCopyManager *iface)
HRESULT BackgroundCopyJobConstructor(LPCWSTR displayName, BG_JOB_TYPE type, GUID *job_id, BackgroundCopyJobImpl **job)
void processJob(BackgroundCopyJobImpl *job)
#define LIST_FOR_EACH_ENTRY_SAFE(cursor, cursor2, list, type, field)
HRESULT BackgroundCopyManagerConstructor(LPVOID *ppObj)
DWORD WINAPI fileTransfer(void *param)
static HRESULT WINAPI BackgroundCopyManager_EnumJobs(IBackgroundCopyManager *iface, DWORD flags, IEnumBackgroundCopyJobs **ppEnum)
static const IBackgroundCopyManagerVtbl BackgroundCopyManagerVtbl
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
BOOL WINAPI DECLSPEC_HOTPATCH ResetEvent(IN HANDLE hEvent)
static HRESULT WINAPI BackgroundCopyManager_QueryInterface(IBackgroundCopyManager *iface, REFIID riid, void **ppv)
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
static HRESULT WINAPI BackgroundCopyManager_GetJob(IBackgroundCopyManager *iface, REFGUID jobID, IBackgroundCopyJob **job)