ReactOS 0.4.16-dev-125-g798ea90
CMallocSpy Struct Reference
Inheritance diagram for CMallocSpy:
Collaboration diagram for CMallocSpy:

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 27 of file CComHeapPtr.cpp.

Member Function Documentation

◆ AddRef()

virtual ULONG STDMETHODCALLTYPE CMallocSpy::AddRef ( void  )
inlinevirtual

Implements IUnknown.

Definition at line 38 of file CComHeapPtr.cpp.

38{ return 1; }

◆ PostAlloc()

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

Implements IMallocSpy.

Definition at line 41 of file CComHeapPtr.cpp.

42 {
44 return pActual;
45 }
static LONG g_OpenAllocations
Definition: CComHeapPtr.cpp:24
#define InterlockedIncrement
Definition: armddk.h:53

◆ PostDidAlloc()

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

Implements IMallocSpy.

Definition at line 66 of file CComHeapPtr.cpp.

66{ return fActual; }

◆ PostFree()

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

Implements IMallocSpy.

Definition at line 47 of file CComHeapPtr.cpp.

48 {
49 if (fSpyed)
51 }
#define InterlockedDecrement
Definition: armddk.h:52

◆ PostGetSize()

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

Implements IMallocSpy.

Definition at line 64 of file CComHeapPtr.cpp.

64{ return cbActual; }

◆ PostHeapMinimize()

virtual void STDMETHODCALLTYPE CMallocSpy::PostHeapMinimize ( )
inlinevirtual

Implements IMallocSpy.

Definition at line 68 of file CComHeapPtr.cpp.

68{}

◆ PostRealloc()

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

Implements IMallocSpy.

Definition at line 57 of file CComHeapPtr.cpp.

58 {
59 if (fSpyed)
61 return pActual;
62 }
static LONG g_Reallocations
Definition: CComHeapPtr.cpp:25

◆ PreAlloc()

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

Implements IMallocSpy.

Definition at line 40 of file CComHeapPtr.cpp.

40{ return cbRequest; }

◆ PreDidAlloc()

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

Implements IMallocSpy.

Definition at line 65 of file CComHeapPtr.cpp.

65{ return pRequest; }
FxRequest * pRequest

◆ PreFree()

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

Implements IMallocSpy.

Definition at line 46 of file CComHeapPtr.cpp.

46{ return pRequest; }

◆ PreGetSize()

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

Implements IMallocSpy.

Definition at line 63 of file CComHeapPtr.cpp.

63{ return pRequest; }

◆ PreHeapMinimize()

virtual void STDMETHODCALLTYPE CMallocSpy::PreHeapMinimize ( )
inlinevirtual

Implements IMallocSpy.

Definition at line 67 of file CComHeapPtr.cpp.

67{}

◆ PreRealloc()

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

Implements IMallocSpy.

Definition at line 52 of file CComHeapPtr.cpp.

53 {
54 *ppNewRequest = pRequest;
55 return cbRequest;
56 }

◆ QueryInterface()

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

Implements IUnknown.

Definition at line 29 of file CComHeapPtr.cpp.

30 {
31 if (IsEqualGUID(riid, IID_IMallocSpy))
32 {
33 *ppvObject = this;
34 }
35 return S_OK;
36 }
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 CMallocSpy::Release ( void  )
inlinevirtual

Implements IUnknown.

Definition at line 39 of file CComHeapPtr.cpp.

39{ return 1; }

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