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 / isppropp.cpp < prev    next >
C/C++ Source or Header  |  1995-05-03  |  2KB  |  88 lines

  1. /*
  2.  * ISPPROPP.CPP
  3.  *
  4.  * Template ISpecifyPropertyPages interface implementation.
  5.  *
  6.  * Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  7.  *
  8.  * Kraig Brockschmidt, Microsoft
  9.  * Internet  :  kraigb@microsoft.com
  10.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  11.  */
  12.  
  13.  
  14. #include "isppropp.h"
  15.  
  16.  
  17. /*
  18.  * CImpISpecifyPropertyPages::CImpISpecifyPropertyPages
  19.  * CImpISpecifyPropertyPages::~CImpISpecifyPropertyPages
  20.  *
  21.  * Parameters (Constructor):
  22.  *  pObj            LPVOID of the object we're in.
  23.  *  pUnkOuter       LPUNKNOWN to which we delegate.
  24.  */
  25.  
  26. CImpISpecifyPropertyPages::CImpISpecifyPropertyPages(LPVOID pObj
  27.     , LPUNKNOWN pUnkOuter)
  28.     {
  29.     m_cRef=0;
  30.     m_pObj=pObj;
  31.     m_pUnkOuter=pUnkOuter;
  32.     return;
  33.     }
  34.  
  35. CImpISpecifyPropertyPages::~CImpISpecifyPropertyPages(void)
  36.     {
  37.     return;
  38.     }
  39.  
  40.  
  41.  
  42. /*
  43.  * CImpISpecifyPropertyPages::QueryInterface
  44.  * CImpISpecifyPropertyPages::AddRef
  45.  * CImpISpecifyPropertyPages::Release
  46.  *
  47.  * Purpose:
  48.  *  Delegating IUnknown members for CImpISpecifyPropertyPages.
  49.  */
  50.  
  51. STDMETHODIMP CImpISpecifyPropertyPages::QueryInterface(REFIID riid
  52.     , LPVOID *ppv)
  53.     {
  54.     return m_pUnkOuter->QueryInterface(riid, ppv);
  55.     }
  56.  
  57. STDMETHODIMP_(ULONG) CImpISpecifyPropertyPages::AddRef(void)
  58.     {
  59.     ++m_cRef;
  60.     return m_pUnkOuter->AddRef();
  61.     }
  62.  
  63. STDMETHODIMP_(ULONG) CImpISpecifyPropertyPages::Release(void)
  64.     {
  65.     --m_cRef;
  66.     return m_pUnkOuter->Release();
  67.     }
  68.  
  69.  
  70.  
  71. /*
  72.  * CImpISpecifyPropertyPages::GetPages
  73.  *
  74.  * Purpose:
  75.  *  Returns an array of GUIDs identifying the indivudual property
  76.  *  pages used for this object.
  77.  *
  78.  * Parameters:
  79.  *  pPages          CAUUID * pointing to a counted array of GUIDs.
  80.  *                  This function allocates the array elements
  81.  *                  and stores them in this structure.
  82.  */
  83.  
  84. STDMETHODIMP CImpISpecifyPropertyPages::GetPages(CAUUID *pPages)
  85.     {
  86.     return ResultFromScode(E_NOTIMPL);
  87.     }
  88.