共用方式為


IMallocSpy Interface

Definition

Enables monitoring of memory allocation, detection of memory leaks, and simulation of memory failure in calls to IMalloc methods. For more information, see IMallocSpy.

public interface class IMallocSpy
public interface class IMallocSpy
__interface IMallocSpy
[System.Runtime.InteropServices.ComConversionLoss]
[System.Runtime.InteropServices.Guid("0000001D-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IMallocSpy
[System.Runtime.InteropServices.ComConversionLoss]
[System.Runtime.InteropServices.Guid("0000001D-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IMallocSpy
[<System.Runtime.InteropServices.ComConversionLoss>]
[<System.Runtime.InteropServices.Guid("0000001D-0000-0000-C000-000000000046")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IMallocSpy = interface
[<System.Runtime.InteropServices.ComConversionLoss>]
[<System.Runtime.InteropServices.Guid("0000001D-0000-0000-C000-000000000046")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IMallocSpy = interface
Public Interface IMallocSpy
Attributes

Methods

PostAlloc(IntPtr)
PostDidAlloc(IntPtr, Int32, Int32)
PostFree(Int32)
PostGetSize(IntPtr, Int32)
PostGetSize(UInt32, Int32)
PostHeapMinimize()
PostRealloc(IntPtr, Int32)
PreAlloc(IntPtr)
PreAlloc(UInt32)
PreDidAlloc(IntPtr, Int32)
PreFree(IntPtr, Int32)
PreGetSize(IntPtr, Int32)
PreHeapMinimize()
PreRealloc(IntPtr, IntPtr, IntPtr, Int32)
PreRealloc(IntPtr, UInt32, IntPtr, Int32)

Applies to