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.1 KiB

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