bits: Added constructor for BackgroundCopyManager (14/27)
Roy Shea
roy at cs.hmc.edu
Fri Nov 16 18:18:44 CST 2007
---
dlls/qmgr/qmgr.c | 20 ++++++++++++++++++++
dlls/qmgr/qmgr_private.h | 3 +++
2 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/dlls/qmgr/qmgr.c b/dlls/qmgr/qmgr.c
index 3247dc0..8bebaf6 100644
--- a/dlls/qmgr/qmgr.c
+++ b/dlls/qmgr/qmgr.c
@@ -110,3 +110,23 @@ BackgroundCopyManagerImpl BITS_BackgroundCopyManager =
0
};
+
+HRESULT BackgroundCopyManagerConstructor(IUnknown *pUnkOuter, LPVOID *ppObj)
+{
+ BackgroundCopyManagerImpl *bcm;
+
+ TRACE("(%p,%p)\n", pUnkOuter, ppObj);
+
+ bcm = HeapAlloc(GetProcessHeap(), 0, sizeof(*bcm));
+ if (!bcm)
+ {
+ return E_OUTOFMEMORY;
+ }
+
+ bcm->bitsVtbl = &BITS_IBackgroundCopyManager_Vtbl;
+ bcm->ref = 1;
+
+ *ppObj = &bcm->bitsVtbl;
+ return S_OK;
+}
+
diff --git a/dlls/qmgr/qmgr_private.h b/dlls/qmgr/qmgr_private.h
index e354ffd..c3b085b 100644
--- a/dlls/qmgr/qmgr_private.h
+++ b/dlls/qmgr/qmgr_private.h
@@ -27,6 +27,7 @@
#include "winbase.h"
#include "objbase.h"
+#define COBJMACROS
#include "bits.h"
#define ICOM_THIS_MULTI(impl,field,iface) \
@@ -53,5 +54,7 @@ typedef struct
extern ClassFactoryImpl BITS_ClassFactory;
extern BackgroundCopyManagerImpl BITS_BackgroundCopyManager;
+HRESULT BackgroundCopyManagerConstructor(IUnknown *pUnkOuter, LPVOID *ppObj);
+
#endif /* __QMGR_PRIVATE_H__ */
--
1.5.3.1
More information about the wine-patches
mailing list