ReactOS  0.4.15-dev-321-g2d9b385
CHeapPtrListMallocSpy Struct Reference
Inheritance diagram for CHeapPtrListMallocSpy:
Collaboration diagram for CHeapPtrListMallocSpy:

Public Member Functions

STDMETHODIMP QueryInterface (REFIID riid, void **ppvObject)
 
virtual ULONG STDMETHODCALLTYPE AddRef ()
 
virtual ULONG STDMETHODCALLTYPE Release ()
 
virtual SIZE_T STDMETHODCALLTYPE PreAlloc (SIZE_T cbRequest)
 
virtual LPVOID STDMETHODCALLTYPE PostAlloc (LPVOID pActual)
 
virtual LPVOID STDMETHODCALLTYPE PreFree (LPVOID pRequest, BOOL)
 
virtual void STDMETHODCALLTYPE PostFree (BOOL fSpyed)
 
virtual SIZE_T STDMETHODCALLTYPE PreRealloc (LPVOID pRequest, SIZE_T cbRequest, LPVOID *ppNewRequest, BOOL)
 
virtual LPVOID STDMETHODCALLTYPE PostRealloc (LPVOID pActual, BOOL fSpyed)
 
virtual LPVOID STDMETHODCALLTYPE PreGetSize (LPVOID pRequest, BOOL)
 
virtual SIZE_T STDMETHODCALLTYPE PostGetSize (SIZE_T cbActual, BOOL)
 
virtual LPVOID STDMETHODCALLTYPE PreDidAlloc (LPVOID pRequest, BOOL)
 
virtual int STDMETHODCALLTYPE PostDidAlloc (LPVOID, BOOL, int fActual)
 
virtual void STDMETHODCALLTYPE PreHeapMinimize ()
 
virtual void STDMETHODCALLTYPE PostHeapMinimize ()
 

Additional Inherited Members

- Public Types inherited from IMallocSpy
typedef IMallocSpyLPMALLOCSPY
 
- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 

Detailed Description

Definition at line 40 of file CHeapPtrList.cpp.

Member Function Documentation

◆ AddRef()

virtual ULONG STDMETHODCALLTYPE CHeapPtrListMallocSpy::AddRef ( void  )
inlinevirtual

Implements IUnknown.

Definition at line 51 of file CHeapPtrList.cpp.

51 { return 1; }

◆ PostAlloc()

virtual LPVOID STDMETHODCALLTYPE CHeapPtrListMallocSpy::PostAlloc ( LPVOID  pActual)
inlinevirtual

Implements IMallocSpy.

Definition at line 54 of file CHeapPtrList.cpp.

55  {
57  return pActual;
58  }
static LONG g_OpenAllocations
#define InterlockedIncrement
Definition: armddk.h:53

◆ PostDidAlloc()

virtual int STDMETHODCALLTYPE CHeapPtrListMallocSpy::PostDidAlloc ( LPVOID  ,
BOOL  ,
int  fActual 
)
inlinevirtual

Implements IMallocSpy.

Definition at line 79 of file CHeapPtrList.cpp.

79 { return fActual; }

◆ PostFree()

virtual void STDMETHODCALLTYPE CHeapPtrListMallocSpy::PostFree ( BOOL  fSpyed)
inlinevirtual

Implements IMallocSpy.

Definition at line 60 of file CHeapPtrList.cpp.

61  {
62  if (fSpyed)
64  }
#define InterlockedDecrement
Definition: armddk.h:52
static LONG g_OpenAllocations

◆ PostGetSize()

virtual SIZE_T STDMETHODCALLTYPE CHeapPtrListMallocSpy::PostGetSize ( SIZE_T  cbActual,
BOOL   
)
inlinevirtual

Implements IMallocSpy.

Definition at line 77 of file CHeapPtrList.cpp.

77 { return cbActual; }

◆ PostHeapMinimize()

virtual void STDMETHODCALLTYPE CHeapPtrListMallocSpy::PostHeapMinimize ( )
inlinevirtual

Implements IMallocSpy.

Definition at line 81 of file CHeapPtrList.cpp.

81 {}

◆ PostRealloc()

virtual LPVOID STDMETHODCALLTYPE CHeapPtrListMallocSpy::PostRealloc ( LPVOID  pActual,
BOOL  fSpyed 
)
inlinevirtual

Implements IMallocSpy.

Definition at line 70 of file CHeapPtrList.cpp.

71  {
72  if (fSpyed)
74  return pActual;
75  }
static LONG g_Reallocations
#define InterlockedIncrement
Definition: armddk.h:53

◆ PreAlloc()

virtual SIZE_T STDMETHODCALLTYPE CHeapPtrListMallocSpy::PreAlloc ( SIZE_T  cbRequest)
inlinevirtual

Implements IMallocSpy.

Definition at line 53 of file CHeapPtrList.cpp.

53 { return cbRequest; }

◆ PreDidAlloc()

virtual LPVOID STDMETHODCALLTYPE CHeapPtrListMallocSpy::PreDidAlloc ( LPVOID  pRequest,
BOOL   
)
inlinevirtual

Implements IMallocSpy.

Definition at line 78 of file CHeapPtrList.cpp.

78 { return pRequest; }

◆ PreFree()

virtual LPVOID STDMETHODCALLTYPE CHeapPtrListMallocSpy::PreFree ( LPVOID  pRequest,
BOOL   
)
inlinevirtual

Implements IMallocSpy.

Definition at line 59 of file CHeapPtrList.cpp.

59 { return pRequest; }

◆ PreGetSize()

virtual LPVOID STDMETHODCALLTYPE CHeapPtrListMallocSpy::PreGetSize ( LPVOID  pRequest,
BOOL   
)
inlinevirtual

Implements IMallocSpy.

Definition at line 76 of file CHeapPtrList.cpp.

76 { return pRequest; }

◆ PreHeapMinimize()

virtual void STDMETHODCALLTYPE CHeapPtrListMallocSpy::PreHeapMinimize ( )
inlinevirtual

Implements IMallocSpy.

Definition at line 80 of file CHeapPtrList.cpp.

80 {}

◆ PreRealloc()

virtual SIZE_T STDMETHODCALLTYPE CHeapPtrListMallocSpy::PreRealloc ( LPVOID  pRequest,
SIZE_T  cbRequest,
LPVOID ppNewRequest,
BOOL   
)
inlinevirtual

Implements IMallocSpy.

Definition at line 65 of file CHeapPtrList.cpp.

66  {
67  *ppNewRequest = pRequest;
68  return cbRequest;
69  }

◆ QueryInterface()

STDMETHODIMP CHeapPtrListMallocSpy::QueryInterface ( REFIID  riid,
void **  ppvObject 
)
inline

Implements IUnknown.

Definition at line 42 of file CHeapPtrList.cpp.

43  {
44  if (IsEqualGUID(riid, IID_IMallocSpy))
45  {
46  *ppvObject = this;
47  }
48  return S_OK;
49  }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppvObject
Definition: precomp.h:44
#define S_OK
Definition: intsafe.h:59
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112

◆ Release()

virtual ULONG STDMETHODCALLTYPE CHeapPtrListMallocSpy::Release ( void  )
inlinevirtual

Implements IUnknown.

Definition at line 52 of file CHeapPtrList.cpp.

52 { return 1; }

The documentation for this struct was generated from the following file: