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
IMPORTS = uuid wininet urlmon ole32 advapi32
IMPORTS = uuid winhttp ole32 advapi32
C_SRCS = \
enum_files.c \
......
......@@ -57,6 +57,9 @@ typedef struct
HRESULT code;
IBackgroundCopyFile2 *file;
} error;
HANDLE wait;
HANDLE cancel;
HANDLE done;
} BackgroundCopyJobImpl;
/* Background copy file vtbl and related data */
......@@ -69,6 +72,7 @@ typedef struct
WCHAR tempFileName[MAX_PATH];
struct list entryFromJob;
BackgroundCopyJobImpl *owner;
DWORD read_size;
} BackgroundCopyFileImpl;
/* Background copy manager vtbl and related data */
......@@ -104,14 +108,6 @@ void processJob(BackgroundCopyJobImpl *job) DECLSPEC_HIDDEN;
BOOL processFile(BackgroundCopyFileImpl *file, BackgroundCopyJobImpl *job) DECLSPEC_HIDDEN;
/* 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)
{
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