Source code of Windows XP (NT5)
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.

57 lines
1.2 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996 - 1999
  5. //
  6. // File: column.h
  7. //
  8. // Contents: Cert Server Database interface implementation
  9. //
  10. //---------------------------------------------------------------------------
  11. #include "resource.h" // main symbols
  12. class CEnumCERTDBCOLUMN: public IEnumCERTDBCOLUMN
  13. {
  14. public:
  15. CEnumCERTDBCOLUMN();
  16. ~CEnumCERTDBCOLUMN();
  17. public:
  18. // IUnknown
  19. STDMETHODIMP QueryInterface(const IID& iid, void **ppv);
  20. ULONG STDMETHODCALLTYPE AddRef();
  21. ULONG STDMETHODCALLTYPE Release();
  22. // IEnumCERTDBCOLUMN
  23. STDMETHOD(Next)(
  24. /* [in] */ ULONG celt, // celt OR (CVRC_TABLE_* | 0)
  25. /* [out] */ CERTDBCOLUMN *rgelt,
  26. /* [out] */ ULONG *pceltFetched);
  27. STDMETHOD(Skip)(
  28. /* [in] */ LONG celt,
  29. /* [out] */ LONG *pielt);
  30. STDMETHOD(Reset)(VOID);
  31. STDMETHOD(Clone)(
  32. /* [out] */ IEnumCERTDBCOLUMN **ppenum);
  33. HRESULT Open(
  34. IN DWORD dwTable, // CVRC_TABLE_*
  35. IN ICertDB *pdb);
  36. private:
  37. ICertDB *m_pdb;
  38. ULONG m_ielt;
  39. ULONG m_dwTable;
  40. // Reference count
  41. long m_cRef;
  42. };