Commit 230b52da authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

qmgr: Use winhttp for HTTP transfers instead of wininet.

parent 3b5991cd
MODULE = qmgr.dll MODULE = qmgr.dll
IMPORTS = uuid wininet urlmon ole32 advapi32 IMPORTS = uuid winhttp ole32 advapi32
C_SRCS = \ C_SRCS = \
enum_files.c \ enum_files.c \
......
...@@ -57,6 +57,9 @@ typedef struct ...@@ -57,6 +57,9 @@ typedef struct
HRESULT code; HRESULT code;
IBackgroundCopyFile2 *file; IBackgroundCopyFile2 *file;
} error; } error;
HANDLE wait;
HANDLE cancel;
HANDLE done;
} BackgroundCopyJobImpl; } BackgroundCopyJobImpl;
/* Background copy file vtbl and related data */ /* Background copy file vtbl and related data */
...@@ -69,6 +72,7 @@ typedef struct ...@@ -69,6 +72,7 @@ typedef struct
WCHAR tempFileName[MAX_PATH]; WCHAR tempFileName[MAX_PATH];
struct list entryFromJob; struct list entryFromJob;
BackgroundCopyJobImpl *owner; BackgroundCopyJobImpl *owner;
DWORD read_size;
} BackgroundCopyFileImpl; } BackgroundCopyFileImpl;
/* Background copy manager vtbl and related data */ /* Background copy manager vtbl and related data */
...@@ -104,14 +108,6 @@ void processJob(BackgroundCopyJobImpl *job) DECLSPEC_HIDDEN; ...@@ -104,14 +108,6 @@ void processJob(BackgroundCopyJobImpl *job) DECLSPEC_HIDDEN;
BOOL processFile(BackgroundCopyFileImpl *file, BackgroundCopyJobImpl *job) DECLSPEC_HIDDEN; BOOL processFile(BackgroundCopyFileImpl *file, BackgroundCopyJobImpl *job) DECLSPEC_HIDDEN;
/* Little helper functions */ /* Little helper functions */
static inline char *
qmgr_strdup(const char *s)
{
size_t n = strlen(s) + 1;
char *d = HeapAlloc(GetProcessHeap(), 0, n);
return d ? memcpy(d, s, n) : NULL;
}
static inline HRESULT return_strval(const WCHAR *str, WCHAR **ret) static inline HRESULT return_strval(const WCHAR *str, WCHAR **ret)
{ {
int len; int len;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment