ReactOS 0.4.15-dev-5666-gc548b97
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 ()
 
SIZE_T PreAlloc ([in] SIZE_T cbRequest)
 
LPVOID PostAlloc ([in] LPVOID pActual)
 
LPVOID PreFree ([in] LPVOID pRequest, [in] BOOL fSpyed)
 
void PostFree ([in] BOOL fSpyed)
 
SIZE_T PreRealloc ([in] LPVOID pRequest, [in] SIZE_T cbRequest, [out] LPVOID *ppNewRequest, [in] BOOL fSpyed)
 
LPVOID PostRealloc ([in] LPVOID pActual, [in] BOOL fSpyed)
 
LPVOID PreGetSize ([in] LPVOID pRequest, [in] BOOL fSpyed)
 
SIZE_T PostGetSize ([in] SIZE_T cbActual, [in] BOOL fSpyed)
 
LPVOID PreDidAlloc ([in] LPVOID pRequest, [in] BOOL fSpyed)
 
int PostDidAlloc ([in] LPVOID pRequest, [in] BOOL fSpyed, [in] int fActual)
 
void PreHeapMinimize ()
 
void PostHeapMinimize ()
 
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
ULONG AddRef ()
 
ULONG Release ()
 

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

◆ 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

◆ 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; }
FxRequest * 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: atlbase.h:39
#define S_OK
Definition: intsafe.h:52
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
Definition: wincrypt.h:6082

◆ 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: