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

  1. //-----------------------------------------------------------------------------
  2. // File: iclassfact.h
  3. //
  4. // Desc: Implements the class factory for the UI.
  5. //
  6. // Copyright (C) 1999-2001 Microsoft Corporation. All Rights Reserved.
  7. //-----------------------------------------------------------------------------
  8.  
  9. #ifndef _ICLASSFACT_H
  10. #define _ICLASSFACT_H
  11.  
  12.  
  13. class CFactory : 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.     CFactory();
  28.     ~CFactory();
  29.  
  30. protected:
  31.     LONG m_cRef;
  32. };
  33.  
  34.  
  35. #endif // _ICLASSFACT_H
  36.