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.

56 lines
1.2 KiB

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