ReactOS  0.4.13-dev-544-gede3fdd
classfactory.cpp File Reference
#include "precomp.h"
Include dependency graph for classfactory.cpp:

Go to the source code of this file.

Classes

class  CClassFactory
 

Functions

IClassFactoryCClassFactory_fnConstructor (LPFNCREATEINSTANCE lpfnCI, PLONG pcRefDll, IID *riidInst)
 

Function Documentation

◆ CClassFactory_fnConstructor()

IClassFactory* CClassFactory_fnConstructor ( LPFNCREATEINSTANCE  lpfnCI,
PLONG  pcRefDll,
IID riidInst 
)

Definition at line 98 of file classfactory.cpp.

102 {
103  CClassFactory* factory = new CClassFactory(lpfnCI, pcRefDll, riidInst);
104 
105  if (!factory)
106  return NULL;
107 
108  if (pcRefDll)
109  InterlockedIncrement(pcRefDll);
110 
111  return (LPCLASSFACTORY)factory;
112 }
LPFNCREATEINSTANCE lpfnCI
Definition: shellole.c:61
Definition: main.c:440
smooth NULL
Definition: ftsmooth.c:416
#define InterlockedIncrement
Definition: armddk.h:53
static ClassFactoryImpl factory
Definition: ole_server.c:234