MCPcopy Create free account
hub / github.com/Atarity/Lightpack / allocClassFactory

Function allocClassFactory

Software/libraryinjector/LibraryInjector.c:327–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325}
326
327IClassFactory * allocClassFactory(void) {
328 ClassFactory * thisobj = GlobalAlloc(GMEM_FIXED, sizeof(ClassFactory));
329 if (!thisobj)
330 return NULL;
331
332 InterlockedIncrement(&comObjectsCount);
333 thisobj->refCount = 0;
334 thisobj->lpVtbl = &classFactoryVtbl;
335 return (IClassFactory *)thisobj;
336}
337
338void freeClassFactory(ClassFactory * factory) {
339 if (factory) {

Callers 1

DllGetClassObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected