qmgr: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5e4fb4b5e6
commit
13de3b2ea6
|
@ -1,4 +1,3 @@
|
||||||
EXTRADEFS = -DWINE_NO_LONG_TYPES
|
|
||||||
MODULE = qmgr.dll
|
MODULE = qmgr.dll
|
||||||
IMPORTS = uuid winhttp ole32 advapi32
|
IMPORTS = uuid winhttp ole32 advapi32
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ static ULONG WINAPI EnumBackgroundCopyFiles_AddRef(IEnumBackgroundCopyFiles *ifa
|
||||||
EnumBackgroundCopyFilesImpl *This = impl_from_IEnumBackgroundCopyFiles(iface);
|
EnumBackgroundCopyFilesImpl *This = impl_from_IEnumBackgroundCopyFiles(iface);
|
||||||
ULONG ref = InterlockedIncrement(&This->ref);
|
ULONG ref = InterlockedIncrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p)->(%d)\n", This, ref);
|
TRACE("(%p)->(%ld)\n", This, ref);
|
||||||
return ref;
|
return ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ static ULONG WINAPI EnumBackgroundCopyFiles_Release(IEnumBackgroundCopyFiles *if
|
||||||
ULONG ref = InterlockedDecrement(&This->ref);
|
ULONG ref = InterlockedDecrement(&This->ref);
|
||||||
ULONG i;
|
ULONG i;
|
||||||
|
|
||||||
TRACE("(%p)->(%d)\n", This, ref);
|
TRACE("(%p)->(%ld)\n", This, ref);
|
||||||
|
|
||||||
if (ref == 0)
|
if (ref == 0)
|
||||||
{
|
{
|
||||||
|
@ -92,7 +92,7 @@ static HRESULT WINAPI EnumBackgroundCopyFiles_Next(IEnumBackgroundCopyFiles *ifa
|
||||||
ULONG i;
|
ULONG i;
|
||||||
IBackgroundCopyFile2 *file;
|
IBackgroundCopyFile2 *file;
|
||||||
|
|
||||||
TRACE("(%p)->(%d %p %p)\n", This, celt, rgelt, pceltFetched);
|
TRACE("(%p)->(%ld %p %p)\n", This, celt, rgelt, pceltFetched);
|
||||||
|
|
||||||
/* Despite documented behavior, Windows (tested on XP) is not verifying
|
/* Despite documented behavior, Windows (tested on XP) is not verifying
|
||||||
that the caller set pceltFetched to zero. No check here. */
|
that the caller set pceltFetched to zero. No check here. */
|
||||||
|
@ -129,7 +129,7 @@ static HRESULT WINAPI EnumBackgroundCopyFiles_Skip(IEnumBackgroundCopyFiles *ifa
|
||||||
{
|
{
|
||||||
EnumBackgroundCopyFilesImpl *This = impl_from_IEnumBackgroundCopyFiles(iface);
|
EnumBackgroundCopyFilesImpl *This = impl_from_IEnumBackgroundCopyFiles(iface);
|
||||||
|
|
||||||
TRACE("(%p)->(%d)\n", This, celt);
|
TRACE("(%p)->(%ld)\n", This, celt);
|
||||||
|
|
||||||
if (celt > This->numFiles - This->indexFiles)
|
if (celt > This->numFiles - This->indexFiles)
|
||||||
{
|
{
|
||||||
|
|
|
@ -60,7 +60,7 @@ static ULONG WINAPI EnumBackgroundCopyJobs_AddRef(IEnumBackgroundCopyJobs *iface
|
||||||
EnumBackgroundCopyJobsImpl *This = impl_from_IEnumBackgroundCopyJobs(iface);
|
EnumBackgroundCopyJobsImpl *This = impl_from_IEnumBackgroundCopyJobs(iface);
|
||||||
ULONG ref = InterlockedIncrement(&This->ref);
|
ULONG ref = InterlockedIncrement(&This->ref);
|
||||||
|
|
||||||
TRACE("(%p)->(%d)\n", This, ref);
|
TRACE("(%p)->(%ld)\n", This, ref);
|
||||||
|
|
||||||
return ref;
|
return ref;
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ static ULONG WINAPI EnumBackgroundCopyJobs_Release(IEnumBackgroundCopyJobs *ifac
|
||||||
ULONG ref = InterlockedDecrement(&This->ref);
|
ULONG ref = InterlockedDecrement(&This->ref);
|
||||||
ULONG i;
|
ULONG i;
|
||||||
|
|
||||||
TRACE("(%p)->(%d)\n", This, ref);
|
TRACE("(%p)->(%ld)\n", This, ref);
|
||||||
|
|
||||||
if (ref == 0) {
|
if (ref == 0) {
|
||||||
for(i = 0; i < This->numJobs; i++)
|
for(i = 0; i < This->numJobs; i++)
|
||||||
|
@ -90,7 +90,7 @@ static HRESULT WINAPI EnumBackgroundCopyJobs_Next(IEnumBackgroundCopyJobs *iface
|
||||||
ULONG fetched;
|
ULONG fetched;
|
||||||
ULONG i;
|
ULONG i;
|
||||||
|
|
||||||
TRACE("(%p)->(%d %p %p)\n", This, celt, rgelt, pceltFetched);
|
TRACE("(%p)->(%ld %p %p)\n", This, celt, rgelt, pceltFetched);
|
||||||
|
|
||||||
fetched = min(celt, This->numJobs - This->indexJobs);
|
fetched = min(celt, This->numJobs - This->indexJobs);
|
||||||
if (pceltFetched)
|
if (pceltFetched)
|
||||||
|
@ -121,7 +121,7 @@ static HRESULT WINAPI EnumBackgroundCopyJobs_Skip(IEnumBackgroundCopyJobs *iface
|
||||||
{
|
{
|
||||||
EnumBackgroundCopyJobsImpl *This = impl_from_IEnumBackgroundCopyJobs(iface);
|
EnumBackgroundCopyJobsImpl *This = impl_from_IEnumBackgroundCopyJobs(iface);
|
||||||
|
|
||||||
TRACE("(%p)->(%d)\n", This, celt);
|
TRACE("(%p)->(%ld)\n", This, celt);
|
||||||
|
|
||||||
if (This->numJobs - This->indexJobs < celt)
|
if (This->numJobs - This->indexJobs < celt)
|
||||||
{
|
{
|
||||||
|
|
|
@ -67,7 +67,7 @@ static ULONG WINAPI BackgroundCopyFile_AddRef(
|
||||||
{
|
{
|
||||||
BackgroundCopyFileImpl *file = impl_from_IBackgroundCopyFile2(iface);
|
BackgroundCopyFileImpl *file = impl_from_IBackgroundCopyFile2(iface);
|
||||||
ULONG ref = InterlockedIncrement(&file->ref);
|
ULONG ref = InterlockedIncrement(&file->ref);
|
||||||
TRACE("(%p)->(%d)\n", file, ref);
|
TRACE("(%p)->(%ld)\n", file, ref);
|
||||||
return ref;
|
return ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ static ULONG WINAPI BackgroundCopyFile_Release(
|
||||||
BackgroundCopyFileImpl *file = impl_from_IBackgroundCopyFile2(iface);
|
BackgroundCopyFileImpl *file = impl_from_IBackgroundCopyFile2(iface);
|
||||||
ULONG ref = InterlockedDecrement(&file->ref);
|
ULONG ref = InterlockedDecrement(&file->ref);
|
||||||
|
|
||||||
TRACE("(%p)->(%d)\n", file, ref);
|
TRACE("(%p)->(%ld)\n", file, ref);
|
||||||
|
|
||||||
if (ref == 0)
|
if (ref == 0)
|
||||||
{
|
{
|
||||||
|
@ -216,7 +216,7 @@ static HRESULT hresult_from_http_response(DWORD code)
|
||||||
case 504: return BG_E_HTTP_ERROR_504;
|
case 504: return BG_E_HTTP_ERROR_504;
|
||||||
case 505: return BG_E_HTTP_ERROR_505;
|
case 505: return BG_E_HTTP_ERROR_505;
|
||||||
default:
|
default:
|
||||||
FIXME("unhandled response code %u\n", code);
|
FIXME("unhandled response code %lu\n", code);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -227,7 +227,7 @@ static void CALLBACK progress_callback_http(HINTERNET handle, DWORD_PTR context,
|
||||||
BackgroundCopyFileImpl *file = (BackgroundCopyFileImpl *)context;
|
BackgroundCopyFileImpl *file = (BackgroundCopyFileImpl *)context;
|
||||||
BackgroundCopyJobImpl *job = file->owner;
|
BackgroundCopyJobImpl *job = file->owner;
|
||||||
|
|
||||||
TRACE("%p, %p, %x, %p, %u\n", handle, file, status, buf, buflen);
|
TRACE("%p, %p, %lx, %p, %lu\n", handle, file, status, buf, buflen);
|
||||||
|
|
||||||
switch (status)
|
switch (status)
|
||||||
{
|
{
|
||||||
|
@ -465,7 +465,7 @@ static BOOL transfer_file_local(BackgroundCopyFileImpl *file, const WCHAR *tmpna
|
||||||
|
|
||||||
if (!(ret = CopyFileExW(ptr, tmpname, progress_callback_local, file, NULL, 0)))
|
if (!(ret = CopyFileExW(ptr, tmpname, progress_callback_local, file, NULL, 0)))
|
||||||
{
|
{
|
||||||
WARN("Local file copy failed: error %u\n", GetLastError());
|
WARN("Local file copy failed: error %lu\n", GetLastError());
|
||||||
transitionJobState(job, BG_JOB_STATE_TRANSFERRING, BG_JOB_STATE_ERROR);
|
transitionJobState(job, BG_JOB_STATE_TRANSFERRING, BG_JOB_STATE_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -482,7 +482,7 @@ BOOL processFile(BackgroundCopyFileImpl *file, BackgroundCopyJobImpl *job)
|
||||||
|
|
||||||
if (!GetTempPathW(MAX_PATH, tmpDir))
|
if (!GetTempPathW(MAX_PATH, tmpDir))
|
||||||
{
|
{
|
||||||
ERR("Couldn't create temp file name: %d\n", GetLastError());
|
ERR("Couldn't create temp file name: %ld\n", GetLastError());
|
||||||
/* Guessing on what state this should give us */
|
/* Guessing on what state this should give us */
|
||||||
transitionJobState(job, BG_JOB_STATE_QUEUED, BG_JOB_STATE_TRANSIENT_ERROR);
|
transitionJobState(job, BG_JOB_STATE_QUEUED, BG_JOB_STATE_TRANSIENT_ERROR);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -490,7 +490,7 @@ BOOL processFile(BackgroundCopyFileImpl *file, BackgroundCopyJobImpl *job)
|
||||||
|
|
||||||
if (!GetTempFileNameW(tmpDir, L"BIT", 0, tmpName))
|
if (!GetTempFileNameW(tmpDir, L"BIT", 0, tmpName))
|
||||||
{
|
{
|
||||||
ERR("Couldn't create temp file: %d\n", GetLastError());
|
ERR("Couldn't create temp file: %ld\n", GetLastError());
|
||||||
/* Guessing on what state this should give us */
|
/* Guessing on what state this should give us */
|
||||||
transitionJobState(job, BG_JOB_STATE_QUEUED, BG_JOB_STATE_TRANSIENT_ERROR);
|
transitionJobState(job, BG_JOB_STATE_QUEUED, BG_JOB_STATE_TRANSIENT_ERROR);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
|
@ -84,7 +84,7 @@ static ULONG WINAPI copy_error_AddRef(
|
||||||
{
|
{
|
||||||
struct copy_error *error = impl_from_IBackgroundCopyError(iface);
|
struct copy_error *error = impl_from_IBackgroundCopyError(iface);
|
||||||
LONG refs = InterlockedIncrement(&error->refs);
|
LONG refs = InterlockedIncrement(&error->refs);
|
||||||
TRACE("(%p)->(%d)\n", error, refs);
|
TRACE("(%p)->(%ld)\n", error, refs);
|
||||||
return refs;
|
return refs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ static ULONG WINAPI copy_error_Release(
|
||||||
struct copy_error *error = impl_from_IBackgroundCopyError(iface);
|
struct copy_error *error = impl_from_IBackgroundCopyError(iface);
|
||||||
LONG refs = InterlockedDecrement(&error->refs);
|
LONG refs = InterlockedDecrement(&error->refs);
|
||||||
|
|
||||||
TRACE("(%p)->(%d)\n", error, refs);
|
TRACE("(%p)->(%ld)\n", error, refs);
|
||||||
|
|
||||||
if (!refs)
|
if (!refs)
|
||||||
{
|
{
|
||||||
|
@ -116,7 +116,7 @@ static HRESULT WINAPI copy_error_GetError(
|
||||||
*pContext = error->context;
|
*pContext = error->context;
|
||||||
*pCode = error->code;
|
*pCode = error->code;
|
||||||
|
|
||||||
TRACE("returning context %u error code 0x%08x\n", error->context, error->code);
|
TRACE("returning context %u error code 0x%08lx\n", error->context, error->code);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -187,7 +187,7 @@ static HRESULT create_copy_error(
|
||||||
{
|
{
|
||||||
struct copy_error *error;
|
struct copy_error *error;
|
||||||
|
|
||||||
TRACE("context %u code %08x file %p\n", context, code, file);
|
TRACE("context %u code %08lx file %p\n", context, code, file);
|
||||||
|
|
||||||
if (!(error = HeapAlloc(GetProcessHeap(), 0, sizeof(*error) ))) return E_OUTOFMEMORY;
|
if (!(error = HeapAlloc(GetProcessHeap(), 0, sizeof(*error) ))) return E_OUTOFMEMORY;
|
||||||
error->IBackgroundCopyError_iface.lpVtbl = ©_error_vtbl;
|
error->IBackgroundCopyError_iface.lpVtbl = ©_error_vtbl;
|
||||||
|
@ -245,7 +245,7 @@ static ULONG WINAPI BackgroundCopyJob_AddRef(IBackgroundCopyJob4 *iface)
|
||||||
{
|
{
|
||||||
BackgroundCopyJobImpl *job = impl_from_IBackgroundCopyJob4(iface);
|
BackgroundCopyJobImpl *job = impl_from_IBackgroundCopyJob4(iface);
|
||||||
ULONG refcount = InterlockedIncrement(&job->ref);
|
ULONG refcount = InterlockedIncrement(&job->ref);
|
||||||
TRACE("%p, refcount %d.\n", iface, refcount);
|
TRACE("%p, refcount %ld.\n", iface, refcount);
|
||||||
return refcount;
|
return refcount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -254,7 +254,7 @@ static ULONG WINAPI BackgroundCopyJob_Release(IBackgroundCopyJob4 *iface)
|
||||||
BackgroundCopyJobImpl *job = impl_from_IBackgroundCopyJob4(iface);
|
BackgroundCopyJobImpl *job = impl_from_IBackgroundCopyJob4(iface);
|
||||||
ULONG i, j, ref = InterlockedDecrement(&job->ref);
|
ULONG i, j, ref = InterlockedDecrement(&job->ref);
|
||||||
|
|
||||||
TRACE("%p, refcount %d.\n", iface, ref);
|
TRACE("%p, refcount %ld.\n", iface, ref);
|
||||||
|
|
||||||
if (!ref)
|
if (!ref)
|
||||||
{
|
{
|
||||||
|
@ -291,7 +291,7 @@ static HRESULT WINAPI BackgroundCopyJob_AddFileSet(IBackgroundCopyJob4 *iface, U
|
||||||
HRESULT hr = S_OK;
|
HRESULT hr = S_OK;
|
||||||
ULONG i;
|
ULONG i;
|
||||||
|
|
||||||
TRACE("%p, %u, %p.\n", iface, cFileCount, pFileSet);
|
TRACE("%p, %lu, %p.\n", iface, cFileCount, pFileSet);
|
||||||
|
|
||||||
EnterCriticalSection(&job->cs);
|
EnterCriticalSection(&job->cs);
|
||||||
|
|
||||||
|
@ -405,12 +405,12 @@ static HRESULT WINAPI BackgroundCopyJob_Cancel(IBackgroundCopyJob4 *iface)
|
||||||
{
|
{
|
||||||
if (file->tempFileName[0] && !DeleteFileW(file->tempFileName))
|
if (file->tempFileName[0] && !DeleteFileW(file->tempFileName))
|
||||||
{
|
{
|
||||||
WARN("Couldn't delete %s (%u)\n", debugstr_w(file->tempFileName), GetLastError());
|
WARN("Couldn't delete %s (%lu)\n", debugstr_w(file->tempFileName), GetLastError());
|
||||||
hr = BG_S_UNABLE_TO_DELETE_FILES;
|
hr = BG_S_UNABLE_TO_DELETE_FILES;
|
||||||
}
|
}
|
||||||
if (file->info.LocalName && !DeleteFileW(file->info.LocalName))
|
if (file->info.LocalName && !DeleteFileW(file->info.LocalName))
|
||||||
{
|
{
|
||||||
WARN("Couldn't delete %s (%u)\n", debugstr_w(file->info.LocalName), GetLastError());
|
WARN("Couldn't delete %s (%lu)\n", debugstr_w(file->info.LocalName), GetLastError());
|
||||||
hr = BG_S_UNABLE_TO_DELETE_FILES;
|
hr = BG_S_UNABLE_TO_DELETE_FILES;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -620,7 +620,7 @@ static HRESULT WINAPI BackgroundCopyJob_SetNotifyFlags(IBackgroundCopyJob4 *ifac
|
||||||
BG_NOTIFY_JOB_MODIFICATION |
|
BG_NOTIFY_JOB_MODIFICATION |
|
||||||
BG_NOTIFY_FILE_TRANSFERRED;
|
BG_NOTIFY_FILE_TRANSFERRED;
|
||||||
|
|
||||||
TRACE("%p, %#x.\n", iface, flags);
|
TRACE("%p, %#lx.\n", iface, flags);
|
||||||
|
|
||||||
if (is_job_done(job)) return BG_E_INVALID_STATE;
|
if (is_job_done(job)) return BG_E_INVALID_STATE;
|
||||||
if (flags & ~valid_flags) return E_NOTIMPL;
|
if (flags & ~valid_flags) return E_NOTIMPL;
|
||||||
|
@ -686,7 +686,7 @@ static HRESULT WINAPI BackgroundCopyJob_GetNotifyInterface(IBackgroundCopyJob4 *
|
||||||
|
|
||||||
static HRESULT WINAPI BackgroundCopyJob_SetMinimumRetryDelay(IBackgroundCopyJob4 *iface, ULONG delay)
|
static HRESULT WINAPI BackgroundCopyJob_SetMinimumRetryDelay(IBackgroundCopyJob4 *iface, ULONG delay)
|
||||||
{
|
{
|
||||||
FIXME("%p, %u.\n", iface, delay);
|
FIXME("%p, %lu.\n", iface, delay);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -699,7 +699,7 @@ static HRESULT WINAPI BackgroundCopyJob_GetMinimumRetryDelay(IBackgroundCopyJob4
|
||||||
|
|
||||||
static HRESULT WINAPI BackgroundCopyJob_SetNoProgressTimeout(IBackgroundCopyJob4 *iface, ULONG timeout)
|
static HRESULT WINAPI BackgroundCopyJob_SetNoProgressTimeout(IBackgroundCopyJob4 *iface, ULONG timeout)
|
||||||
{
|
{
|
||||||
FIXME("%p, %u.: stub\n", iface, timeout);
|
FIXME("%p, %lu.: stub\n", iface, timeout);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -859,13 +859,13 @@ static HRESULT WINAPI BackgroundCopyJob_AddFileWithRanges(
|
||||||
DWORD RangeCount,
|
DWORD RangeCount,
|
||||||
BG_FILE_RANGE Ranges[])
|
BG_FILE_RANGE Ranges[])
|
||||||
{
|
{
|
||||||
FIXME("%p, %s, %s, %u, %p: stub\n", iface, debugstr_w(RemoteUrl), debugstr_w(LocalName), RangeCount, Ranges);
|
FIXME("%p, %s, %s, %lu, %p: stub\n", iface, debugstr_w(RemoteUrl), debugstr_w(LocalName), RangeCount, Ranges);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI BackgroundCopyJob_SetFileACLFlags(IBackgroundCopyJob4 *iface, DWORD flags)
|
static HRESULT WINAPI BackgroundCopyJob_SetFileACLFlags(IBackgroundCopyJob4 *iface, DWORD flags)
|
||||||
{
|
{
|
||||||
FIXME("%p, %#x: stub\n", iface, flags);
|
FIXME("%p, %#lx: stub\n", iface, flags);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -877,7 +877,7 @@ static HRESULT WINAPI BackgroundCopyJob_GetFileACLFlags(IBackgroundCopyJob4 *ifa
|
||||||
|
|
||||||
static HRESULT WINAPI BackgroundCopyJob_SetPeerCachingFlags(IBackgroundCopyJob4 *iface, DWORD flags)
|
static HRESULT WINAPI BackgroundCopyJob_SetPeerCachingFlags(IBackgroundCopyJob4 *iface, DWORD flags)
|
||||||
{
|
{
|
||||||
FIXME("%p, %#x.\n", iface, flags);
|
FIXME("%p, %#lx.\n", iface, flags);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -901,7 +901,7 @@ static HRESULT WINAPI BackgroundCopyJob_GetOwnerElevationState(IBackgroundCopyJo
|
||||||
|
|
||||||
static HRESULT WINAPI BackgroundCopyJob_SetMaximumDownloadTime(IBackgroundCopyJob4 *iface, ULONG timeout)
|
static HRESULT WINAPI BackgroundCopyJob_SetMaximumDownloadTime(IBackgroundCopyJob4 *iface, ULONG timeout)
|
||||||
{
|
{
|
||||||
FIXME("%p, %u.\n", iface, timeout);
|
FIXME("%p, %lu.\n", iface, timeout);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1100,7 +1100,7 @@ static HRESULT WINAPI http_options_SetSecurityFlags(
|
||||||
{
|
{
|
||||||
BackgroundCopyJobImpl *job = impl_from_IBackgroundCopyJobHttpOptions(iface);
|
BackgroundCopyJobImpl *job = impl_from_IBackgroundCopyJobHttpOptions(iface);
|
||||||
|
|
||||||
TRACE("(%p)->(0x%08x)\n", iface, Flags);
|
TRACE("(%p)->(0x%08lx)\n", iface, Flags);
|
||||||
|
|
||||||
job->http_options.flags = Flags;
|
job->http_options.flags = Flags;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
|
|
@ -108,14 +108,14 @@ static HRESULT WINAPI BackgroundCopyManager_GetJob(IBackgroundCopyManager *iface
|
||||||
static HRESULT WINAPI BackgroundCopyManager_EnumJobs(IBackgroundCopyManager *iface,
|
static HRESULT WINAPI BackgroundCopyManager_EnumJobs(IBackgroundCopyManager *iface,
|
||||||
DWORD flags, IEnumBackgroundCopyJobs **ppEnum)
|
DWORD flags, IEnumBackgroundCopyJobs **ppEnum)
|
||||||
{
|
{
|
||||||
TRACE("(0x%x %p)\n", flags, ppEnum);
|
TRACE("(0x%lx %p)\n", flags, ppEnum);
|
||||||
return enum_copy_job_create(&globalMgr, ppEnum);
|
return enum_copy_job_create(&globalMgr, ppEnum);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI BackgroundCopyManager_GetErrorDescription(IBackgroundCopyManager *iface,
|
static HRESULT WINAPI BackgroundCopyManager_GetErrorDescription(IBackgroundCopyManager *iface,
|
||||||
HRESULT hr, DWORD langid, LPWSTR *error_description)
|
HRESULT hr, DWORD langid, LPWSTR *error_description)
|
||||||
{
|
{
|
||||||
FIXME("(0x%08x 0x%x %p): stub\n", hr, langid, error_description);
|
FIXME("(0x%08lx 0x%lx %p): stub\n", hr, langid, error_description);
|
||||||
return E_NOTIMPL;
|
return E_NOTIMPL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,7 @@ ServiceHandler(DWORD ctrl, DWORD event_type, LPVOID event_data, LPVOID context)
|
||||||
SetEvent(stop_event);
|
SetEvent(stop_event);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
FIXME("ignoring handle service ctrl %x\n", ctrl);
|
FIXME("ignoring handle service ctrl %lx\n", ctrl);
|
||||||
UpdateStatus(status.dwCurrentState, NO_ERROR, 0);
|
UpdateStatus(status.dwCurrentState, NO_ERROR, 0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -116,7 +116,7 @@ ServiceMain(DWORD dwArgc, LPWSTR *lpszArgv)
|
||||||
|
|
||||||
status_handle = RegisterServiceCtrlHandlerExW(L"BITS", ServiceHandler, NULL);
|
status_handle = RegisterServiceCtrlHandlerExW(L"BITS", ServiceHandler, NULL);
|
||||||
if (!status_handle) {
|
if (!status_handle) {
|
||||||
ERR("failed to register handler: %u\n", GetLastError());
|
ERR("failed to register handler: %lu\n", GetLastError());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -129,7 +129,7 @@ ServiceMain(DWORD dwArgc, LPWSTR *lpszArgv)
|
||||||
|
|
||||||
globalMgr.jobEvent = CreateEventW(NULL, TRUE, FALSE, NULL);
|
globalMgr.jobEvent = CreateEventW(NULL, TRUE, FALSE, NULL);
|
||||||
if (!globalMgr.jobEvent) {
|
if (!globalMgr.jobEvent) {
|
||||||
ERR("Couldn't create event: error %d\n", GetLastError());
|
ERR("Couldn't create event: error %ld\n", GetLastError());
|
||||||
UpdateStatus(SERVICE_STOPPED, NO_ERROR, 0);
|
UpdateStatus(SERVICE_STOPPED, NO_ERROR, 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue