Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.7 KiB

  1. //////////////////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // FApplicationManager.h
  4. //
  5. // Copyright (C) 1998, 1999 Microsoft Corporation. All rights reserved.
  6. //
  7. // Abstract :
  8. //
  9. // This file contains the class definition for the Windows Game Manager class factory.
  10. //
  11. // History :
  12. //
  13. // 05/06/1999 luish Created
  14. //
  15. //////////////////////////////////////////////////////////////////////////////////////////////
  16. #ifndef __CFApplicationManager_
  17. #define __CFApplicationManager_
  18. #include <windows.h>
  19. #include <objbase.h>
  20. #undef EXPORT
  21. #ifdef WIN32
  22. #define EXPORT __declspec(dllexport)
  23. #else
  24. #define EXPORT __export
  25. #endif
  26. #define REGPATH_APPMAN _T("Software\\Microsoft\\AppMan")
  27. //////////////////////////////////////////////////////////////////////////////////////////////
  28. //
  29. // This is the class factory for the WindowsGameManager object.
  30. //
  31. // publicly inherits from :
  32. //
  33. // IClassFactory
  34. //
  35. // public members :
  36. //
  37. // QueryInterface()
  38. // AddRef()
  39. // Release()
  40. // CreateInstance()
  41. // LockServer()
  42. //
  43. // private members :
  44. //
  45. // DWORD m_dwReferenceCount
  46. //
  47. //////////////////////////////////////////////////////////////////////////////////////////////
  48. class CFApplicationManager : public IClassFactory
  49. {
  50. public :
  51. CFApplicationManager(void);
  52. ~CFApplicationManager(void);
  53. STDMETHOD (QueryInterface) (REFIID RefIID, void ** lppVoidObject);
  54. STDMETHOD_(ULONG, AddRef) (void);
  55. STDMETHOD_(ULONG, Release) (void);
  56. STDMETHOD (CreateInstance) (IUnknown * lpoParent, REFIID RefIID, LPVOID * lppVoidObject);
  57. STDMETHOD (LockServer) (BOOL fLock);
  58. private :
  59. LONG m_lReferenceCount;
  60. };
  61. #endif // __CFApplicationManager_