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 / iparsedn.h < prev    next >
C/C++ Source or Header  |  1996-05-21  |  1KB  |  46 lines

  1. /*
  2.  * IPARSEDN.H
  3.  *
  4.  * Definitions of a template IParseDisplayName interface
  5.  * implementation.
  6.  *
  7.  * Copyright (c)1993-1995 Microsoft Corporation, All Right Reserved
  8.  *
  9.  * Kraig Brockschmidt, Microsoft
  10.  * Internet  :  kraigb@microsoft.com
  11.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  12.  */
  13.  
  14.  
  15. #ifndef _IPARSEDN_H_
  16. #define _IPARSEDN_H_
  17.  
  18. #include <inole.h>
  19.  
  20. class CImpIParseDisplayName;
  21. typedef class CImpIParseDisplayName *PCImpIParseDisplayName;
  22.  
  23. class CImpIParseDisplayName : public IParseDisplayName
  24.     {
  25.     private:
  26.         ULONG           m_cRef;      //Interface reference count
  27.         LPVOID          m_pObj;      //Backpointer to the object
  28.         LPUNKNOWN       m_pUnkOuter; //For delegation
  29.  
  30.     public:
  31.         CImpIParseDisplayName(LPVOID, LPUNKNOWN);
  32.         ~CImpIParseDisplayName(void);
  33.  
  34.         //IUnknown members that delegate to m_pUnkOuter.
  35.         STDMETHODIMP         QueryInterface(REFIID, LPVOID *);
  36.         STDMETHODIMP_(ULONG) AddRef(void);
  37.         STDMETHODIMP_(ULONG) Release(void);
  38.  
  39.         //IParseDisplayName members
  40.         STDMETHODIMP ParseDisplayName(LPBC, LPOLESTR
  41.             , ULONG *, LPMONIKER *);
  42.     };
  43.  
  44.  
  45. #endif //_IPARSEDN_H_
  46.