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

Function allocLibraryInjector

Software/libraryinjector/LibraryInjector.c:308–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306};
307
308ILibraryInjector * allocLibraryInjector(void) {
309 LibraryInjector * thisobj = GlobalAlloc(GMEM_FIXED, sizeof(LibraryInjector));
310 if (!thisobj)
311 return NULL;
312
313 InterlockedIncrement(&comObjectsCount);
314 thisobj->refCount = 0;
315 thisobj->lpVtbl = &libraryInjectorVtbl;
316
317 return (ILibraryInjector *)thisobj;
318}
319
320void freeLibraryInjector(LibraryInjector * injector) {
321 if (injector) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected