.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH CoRegisterMallocSpy 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBCoRegisterMallocSpy\fR (OLE32.@) .SH SYNOPSIS HRESULT CoRegisterMallocSpy ( LPMALLOCSPY \fIpMallocSpy\fR ) .SH DESCRIPTION .PP Registers an object that receives notifications on memory allocations and frees. .SH PARAMS \fIpMallocSpy\fR \fB[In]\fR New spy object. .PP .SH RETURNS .PP \fBSuccess:\fR \fBS_OK\fR. .PP \fBFailure:\fR \fBHRESULT\fR code. .SH NOTES .PP if a mallocspy is already registered, we can't do it again since only the spy knows, how to free a memory block .SH IMPLEMENTATION .PP Declared in \fB"objbase.h"\fR. .PP Implemented in \fB"dlls/ole32/ifs.c"\fR. .PP Debug channel \fB"olemalloc"\fR.