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 / chap06 / koalaprx / koalaprx.h < prev    next >
C/C++ Source or Header  |  1995-05-03  |  1KB  |  51 lines

  1. /*
  2.  * KOALAPRX.H
  3.  * Koala Custom Marshaling Proxy Chapter 6
  4.  *
  5.  * Definitions, classes, and prototypes for a proxy for a
  6.  * custom marshaling Koala object.
  7.  *
  8.  * Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  9.  *
  10.  * Kraig Brockschmidt, Microsoft
  11.  * Internet  :  kraigb@microsoft.com
  12.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  13.  */
  14.  
  15.  
  16. #ifndef _KOALAPRX_H_
  17. #define _KOALAPRX_H_
  18.  
  19.  
  20. //Get the object definitions
  21. #include "koala.h"
  22.  
  23. void ObjectDestroyed(void);
  24.  
  25. //DKOALA.CPP
  26. //This class factory object creates Koala objects.
  27.  
  28. class CKoalaProxyFactory : public IClassFactory
  29.     {
  30.     protected:
  31.         ULONG           m_cRef;
  32.  
  33.     public:
  34.         CKoalaProxyFactory(void);
  35.         ~CKoalaProxyFactory(void);
  36.  
  37.         //IUnknown members
  38.         STDMETHODIMP         QueryInterface(REFIID, PPVOID);
  39.         STDMETHODIMP_(ULONG) AddRef(void);
  40.         STDMETHODIMP_(ULONG) Release(void);
  41.  
  42.         //IClassFactory members
  43.         STDMETHODIMP         CreateInstance(LPUNKNOWN, REFIID
  44.                                  , PPVOID);
  45.         STDMETHODIMP         LockServer(BOOL);
  46.     };
  47.  
  48. typedef CKoalaProxyFactory *PCKoalaProxyFactory;
  49.  
  50. #endif //_KOALAPRX_H_
  51.