ReactOS 0.4.15-dev-8339-g4028de8
factory.c File Reference
#include "qmgr.h"
#include "wine/debug.h"
Include dependency graph for factory.c:

Go to the source code of this file.

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (qmgr)
 
static ULONG WINAPI BITS_IClassFactory_AddRef (IClassFactory *iface)
 
static HRESULT WINAPI BITS_IClassFactory_QueryInterface (IClassFactory *iface, REFIID riid, void **ppvObj)
 
static ULONG WINAPI BITS_IClassFactory_Release (IClassFactory *iface)
 
static HRESULT WINAPI BITS_IClassFactory_CreateInstance (IClassFactory *iface, IUnknown *pUnkOuter, REFIID riid, void **ppvObj)
 
static HRESULT WINAPI BITS_IClassFactory_LockServer (IClassFactory *iface, BOOL fLock)
 

Variables

static const IClassFactoryVtbl BITS_IClassFactory_Vtbl
 
ClassFactoryImpl BITS_ClassFactory
 

Function Documentation

◆ BITS_IClassFactory_AddRef()

static ULONG WINAPI BITS_IClassFactory_AddRef ( IClassFactory iface)
static

Definition at line 27 of file factory.c.

28{
29 return 2; /* non-heap based object */
30}

◆ BITS_IClassFactory_CreateInstance()

static HRESULT WINAPI BITS_IClassFactory_CreateInstance ( IClassFactory iface,
IUnknown pUnkOuter,
REFIID  riid,
void **  ppvObj 
)
static

Definition at line 52 of file factory.c.

54{
56 IUnknown *punk = NULL;
57
58 TRACE("IID: %s\n", debugstr_guid(riid));
59
60 if (pUnkOuter)
62
64 if (FAILED(res))
65 return res;
66
67 res = IUnknown_QueryInterface(punk, riid, ppvObj);
68 IUnknown_Release(punk);
69 return res;
70}
#define NULL
Definition: types.h:112
HRESULT BackgroundCopyManagerConstructor(LPVOID *ppObj)
Definition: qmgr.c:141
GLuint res
Definition: glext.h:9613
REFIID riid
Definition: atlbase.h:39
#define FAILED(hr)
Definition: intsafe.h:51
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
#define CLASS_E_NOAGGREGATION
Definition: winerror.h:2662

◆ BITS_IClassFactory_LockServer()

static HRESULT WINAPI BITS_IClassFactory_LockServer ( IClassFactory iface,
BOOL  fLock 
)
static

Definition at line 73 of file factory.c.

74{
75 FIXME("Not implemented\n");
76 return E_NOTIMPL;
77}
#define FIXME(fmt,...)
Definition: precomp.h:53
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ BITS_IClassFactory_QueryInterface()

static HRESULT WINAPI BITS_IClassFactory_QueryInterface ( IClassFactory iface,
REFIID  riid,
void **  ppvObj 
)
static

Definition at line 33 of file factory.c.

34{
36 {
38 return S_OK;
39 }
40
41 *ppvObj = NULL;
42 return E_NOINTERFACE;
43}
const GUID IID_IUnknown
const GUID IID_IClassFactory
#define S_OK
Definition: intsafe.h:52
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
ClassFactoryImpl BITS_ClassFactory
Definition: factory.c:88
IClassFactory IClassFactory_iface
Definition: factory.c:26
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ BITS_IClassFactory_Release()

static ULONG WINAPI BITS_IClassFactory_Release ( IClassFactory iface)
static

Definition at line 46 of file factory.c.

47{
48 return 1; /* non-heap based object */
49}

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( qmgr  )

Variable Documentation

◆ BITS_ClassFactory

ClassFactoryImpl BITS_ClassFactory
Initial value:
=
{
}
static const IClassFactoryVtbl BITS_IClassFactory_Vtbl
Definition: factory.c:79

Definition at line 88 of file factory.c.

Referenced by BITS_IClassFactory_QueryInterface(), and StartCount().

◆ BITS_IClassFactory_Vtbl

const IClassFactoryVtbl BITS_IClassFactory_Vtbl
static
Initial value:
=
{
}
static HRESULT WINAPI BITS_IClassFactory_CreateInstance(IClassFactory *iface, IUnknown *pUnkOuter, REFIID riid, void **ppvObj)
Definition: factory.c:52
static ULONG WINAPI BITS_IClassFactory_Release(IClassFactory *iface)
Definition: factory.c:46
static HRESULT WINAPI BITS_IClassFactory_LockServer(IClassFactory *iface, BOOL fLock)
Definition: factory.c:73
static ULONG WINAPI BITS_IClassFactory_AddRef(IClassFactory *iface)
Definition: factory.c:27
static HRESULT WINAPI BITS_IClassFactory_QueryInterface(IClassFactory *iface, REFIID riid, void **ppvObj)
Definition: factory.c:33

Definition at line 79 of file factory.c.