You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.4 KiB
49 lines
1.4 KiB
/*****************************************************************************
|
|
* ftpmi.h
|
|
*****************************************************************************/
|
|
|
|
#ifndef _FTPMALLOCITEM_H
|
|
#define _FTPMALLOCITEM_H
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
*
|
|
* CMallocItem
|
|
*
|
|
* Really nothing doing.
|
|
*
|
|
*****************************************************************************/
|
|
|
|
class CMallocItem : public IMalloc
|
|
{
|
|
public:
|
|
//////////////////////////////////////////////////////
|
|
// Public Interfaces
|
|
//////////////////////////////////////////////////////
|
|
|
|
// *** IUnknown ***
|
|
virtual STDMETHODIMP_(ULONG) AddRef(void);
|
|
virtual STDMETHODIMP_(ULONG) Release(void);
|
|
virtual STDMETHODIMP QueryInterface(REFIID riid, LPVOID * ppvObj);
|
|
|
|
// *** IMalloc ***
|
|
virtual STDMETHODIMP_(LPVOID) Alloc(ULONG cb);
|
|
virtual STDMETHODIMP_(LPVOID) Realloc(LPVOID pv, ULONG cb);
|
|
virtual STDMETHODIMP_(void) Free(LPVOID pv);
|
|
virtual STDMETHODIMP_(ULONG) GetSize(LPVOID pv);
|
|
virtual STDMETHODIMP_(int) DidAlloc(LPVOID pv);
|
|
virtual STDMETHODIMP_(void) HeapMinimize();
|
|
|
|
public:
|
|
CMallocItem();
|
|
~CMallocItem(void);
|
|
|
|
// Friend Functions
|
|
friend HRESULT CMallocItem_Create(IMalloc ** ppm);
|
|
|
|
protected:
|
|
int m_cRef;
|
|
};
|
|
|
|
#endif // _FTPMALLOCITEM_H
|