windows-nt/Source/XPSP1/NT/shell/osshell/dskquota/ui/format.h
2020-09-26 16:20:57 +08:00

75 lines
1.7 KiB
C++

#ifndef _INC_DSKQUOTA_FORMAT_H
#define _INC_DSKQUOTA_FORMAT_H
///////////////////////////////////////////////////////////////////////////////
/* File: format.h
Description: Declaration for class EnumFORMATETC.
Moved from original location in dataobj.h (deleted from project).
Revision History:
Date Description Programmer
-------- --------------------------------------------------- ----------
05/28/97 Initial creation. BrianAu
*/
///////////////////////////////////////////////////////////////////////////////
class EnumFORMATETC : public IEnumFORMATETC
{
private:
LONG m_cRef;
UINT m_cFormats;
UINT m_iCurrent;
LPFORMATETC m_prgFormats;
//
// Prevent assignment.
//
void operator = (const EnumFORMATETC&);
public:
EnumFORMATETC(UINT cFormats, LPFORMATETC prgFormats);
EnumFORMATETC(const EnumFORMATETC& ef);
~EnumFORMATETC(VOID);
//
// IUnknown methods.
//
STDMETHODIMP
QueryInterface(
REFIID riid,
LPVOID *ppvOut);
STDMETHODIMP_(ULONG)
AddRef(
VOID);
STDMETHODIMP_(ULONG)
Release(
VOID);
//
// IEnumFORMATETC methods.
//
STDMETHODIMP
Next(
DWORD,
LPFORMATETC,
LPDWORD);
STDMETHODIMP
Skip(
DWORD);
STDMETHODIMP
Reset(
VOID);
STDMETHODIMP
Clone(
IEnumFORMATETC **);
};
#endif // _INC_DSKQUOTA_FORMAT_H