home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / inole2 / interfac / ienumvrb.h < prev    next >
C/C++ Source or Header  |  1996-05-21  |  1KB  |  49 lines

  1. /*
  2.  * IENUMVRB.H
  3.  *
  4.  * Definitions of an IEnumOLEVERB object.
  5.  *
  6.  * Copyright (c)1993-1995 Microsoft Corporation, All Right Reserved
  7.  *
  8.  * Kraig Brockschmidt, Microsoft
  9.  * Internet  :  kraigb@microsoft.com
  10.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  11.  */
  12.  
  13.  
  14. #ifndef _IENUMVRB_H_
  15. #define _IENUMVRB_H_
  16.  
  17. #include <inole.h>
  18.  
  19. class CEnumOLEVERB;
  20. typedef class CEnumOLEVERB *PCEnumOLEVERB;
  21.  
  22. class CEnumOLEVERB : public IEnumOLEVERB
  23.     {
  24.     private:
  25.         ULONG           m_cRef;     //Object reference count
  26.         LPUNKNOWN       m_pUnkRef;  //IUnknown for ref counting
  27.         ULONG           m_iCur;     //Current element
  28.         ULONG           m_cVerb;    //Number of verbs in us
  29.         LPOLEVERB      *m_prgVerb;  //Source of verbs
  30.  
  31.     public:
  32.         CEnumOLEVERB(LPUNKNOWN, ULONG, LPOLEVERB *);
  33.         ~CEnumOLEVERB(void);
  34.  
  35.         //IUnknown members that delegate to m_pUnkRef.
  36.         STDMETHODIMP         QueryInterface(REFIID, LPVOID *);
  37.         STDMETHODIMP_(ULONG) AddRef(void);
  38.         STDMETHODIMP_(ULONG) Release(void);
  39.  
  40.         //IEnumOLEVERB members
  41.         STDMETHODIMP Next(ULONG, LPOLEVERB, ULONG *);
  42.         STDMETHODIMP Skip(ULONG);
  43.         STDMETHODIMP Reset(void);
  44.         STDMETHODIMP Clone(IEnumOLEVERB **);
  45.     };
  46.  
  47.  
  48. #endif //_IENUMVRB_H_
  49.