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.

54 lines
1.1 KiB

  1. //***************************************************************************
  2. //
  3. // enumvar.h
  4. //
  5. // Module: Client side of WBEMS marshalling.
  6. //
  7. // Purpose: Defines the CEnumVariant object
  8. //
  9. // Copyright (c) 1998-1999 Microsoft Corporation
  10. //
  11. //***************************************************************************
  12. #ifndef _ENUMVAR_H_
  13. #define _ENUMVAR_H_
  14. // This class implements the IEnumVARIANT interface
  15. class CEnumVar : public IEnumVARIANT
  16. {
  17. private:
  18. long m_cRef;
  19. CSWbemObjectSet *m_pEnumObject;
  20. public:
  21. CEnumVar (CSWbemObjectSet *pEnumObject);
  22. CEnumVar (void); // Empty enumerator
  23. virtual ~CEnumVar (void);
  24. // Non-delegating object IUnknown
  25. STDMETHODIMP QueryInterface(REFIID, LPVOID*);
  26. STDMETHODIMP_(ULONG) AddRef(void);
  27. STDMETHODIMP_(ULONG) Release(void);
  28. // IEnumVARIANT
  29. STDMETHODIMP Next(
  30. unsigned long celt,
  31. VARIANT FAR* rgvar,
  32. unsigned long FAR* pceltFetched
  33. );
  34. STDMETHODIMP Skip(
  35. unsigned long celt
  36. );
  37. STDMETHODIMP Reset();
  38. STDMETHODIMP Clone(
  39. IEnumVARIANT **ppenum
  40. );
  41. };
  42. #endif