windows-nt/Source/XPSP1/NT/shell/ext/ftp/ftpmi.h

50 lines
1.3 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*****************************************************************************
* 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