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

  1. /*
  2.  * DBEEPER.H
  3.  * Beeper Object #6 with Property Pages Chapter 16
  4.  *
  5.  * Definitions, classes, and prototypes for the server of Beeper
  6.  * objects.
  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 _DBEEPER_H_
  17. #define _DBEEPER_H_
  18.  
  19.  
  20. //Get the object definitions
  21. #include "beeper.h"
  22.  
  23.  
  24. //DBEEPER.CPP
  25. void ObjectDestroyed(void);
  26.  
  27. //This class factory object creates other objects
  28.  
  29. class CBeeperFactory : public IClassFactory
  30.     {
  31.     protected:
  32.         ULONG           m_cRef;
  33.  
  34.     public:
  35.         CBeeperFactory(void);
  36.         ~CBeeperFactory(void);
  37.  
  38.         //IUnknown members
  39.         STDMETHODIMP         QueryInterface(REFIID, PPVOID);
  40.         STDMETHODIMP_(ULONG) AddRef(void);
  41.         STDMETHODIMP_(ULONG) Release(void);
  42.  
  43.         //IClassFactory members
  44.         STDMETHODIMP     CreateInstance(LPUNKNOWN, REFIID, PPVOID);
  45.         STDMETHODIMP     LockServer(BOOL);
  46.     };
  47.  
  48. typedef CBeeperFactory *PCBeeperFactory;
  49.  
  50. #endif //_DBEEPER_H_
  51.