public unsafe void *PreDidAlloc(void *pRequest, BOOL fSpyed) { Ole32.IMallocSpy current = CurrentSpy; return(current is null ? pRequest : current.PreDidAlloc(pRequest, fSpyed)); }
public unsafe void *PostAlloc(void *pActual) { Ole32.IMallocSpy current = CurrentSpy; return(current is null ? pActual : current.PostAlloc(pActual)); }
public unsafe void *PostRealloc(void *pActual, BOOL fSpyed) { Ole32.IMallocSpy current = CurrentSpy; return(current is null ? pActual : current.PostRealloc(pActual, fSpyed)); }
public void SetSpy(Ole32.IMallocSpy spy, bool currentThreadOnly) { lock (_lock) { _currentSpy = spy; _registeredThread = currentThreadOnly ? Kernel32.GetCurrentThreadId() : 0; } }