Leaked source code of windows server 2003
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.

43 lines
1.1 KiB

  1. #ifndef __POP3_AUTH_METHODS_ENUM_H__
  2. #define __POP3_AUTH_METHODS_ENUM_H__
  3. #include "resource.h"
  4. #include "Authmethods.h"
  5. class ATL_NO_VTABLE CAuthMethodsEnum :
  6. public CComObjectRootEx<CComSingleThreadModel>,
  7. public CComCoClass<CAuthMethodsEnum, &CLSID_AuthMethodsEnum>,
  8. public IEnumVARIANT
  9. {
  10. public:
  11. CAuthMethodsEnum();
  12. virtual ~CAuthMethodsEnum();
  13. DECLARE_REGISTRY_RESOURCEID(IDR_AUTHMETHODSENUM)
  14. DECLARE_PROTECT_FINAL_CONSTRUCT()
  15. BEGIN_COM_MAP(CAuthMethodsEnum)
  16. COM_INTERFACE_ENTRY(IEnumVARIANT)
  17. END_COM_MAP()
  18. //IAuthMethods
  19. public:
  20. HRESULT STDMETHODCALLTYPE Next( /* [in] */ ULONG celt, /* [length_is][size_is][out] */ VARIANT __RPC_FAR *rgVar, /* [out] */ ULONG __RPC_FAR *pCeltFetched);
  21. HRESULT STDMETHODCALLTYPE Skip( /* [in] */ ULONG celt);
  22. HRESULT STDMETHODCALLTYPE Reset( void);
  23. HRESULT STDMETHODCALLTYPE Clone( /* [out] */ IEnumVARIANT __RPC_FAR *__RPC_FAR *ppEnum);
  24. HRESULT Init( AUTHVECTOR *pAuthVector );
  25. private:
  26. AUTHVECTOR *m_pAuthVector;
  27. ULONG m_ulCurrentMethod;
  28. };
  29. #endif//__POP3_AUTH_METHODS_ENUM_H__