home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectInput / DIConfig / ipageclassfact.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-08  |  850 b   |  36 lines

  1. //-----------------------------------------------------------------------------
  2. // File: ipageclassfact.h
  3. //
  4. // Desc: Implements the class factory for the page object.
  5. //
  6. // Copyright (C) 1999-2001 Microsoft Corporation. All Rights Reserved.
  7. //-----------------------------------------------------------------------------
  8.  
  9. #ifndef _IPAGECLASSFACT_H
  10. #define _IPAGECLASSFACT_H
  11.  
  12.  
  13. class CPageFactory : public IClassFactory
  14. {
  15. public:
  16.  
  17.     //IUnknown
  18.     STDMETHOD (QueryInterface) (REFIID riid, LPVOID* ppv);
  19.     STDMETHOD_(ULONG, AddRef) ();
  20.     STDMETHOD_(ULONG, Release) ();
  21.  
  22.     //IClassFactory
  23.     STDMETHOD (CreateInstance) (IUnknown* pUnkOuter, REFIID riid, LPVOID* ppv);
  24.     STDMETHOD (LockServer) (BOOL bLock);
  25.  
  26.     //constructor/destructor
  27.     CPageFactory();
  28.     ~CPageFactory();
  29.  
  30. protected:
  31.     LONG m_cRef;
  32. };
  33.  
  34.  
  35. #endif // _IPAGECLASSFACT_H
  36.