Leaked source code of windows server 2003
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.

32 lines
944 B

  1. #ifndef __IDirectInputEffectDriverClassFactory_H__
  2. #define __IDirectInputEffectDriverClassFactory_H__
  3. #include <windows.h>
  4. #include <unknwn.h>
  5. //#include <dinputd.h>
  6. class CIDirectInputEffectDriverClassFactory : public IClassFactory
  7. {
  8. public:
  9. CIDirectInputEffectDriverClassFactory(IClassFactory* pIPIDClassFactory);
  10. ~CIDirectInputEffectDriverClassFactory();
  11. //IUnknown members
  12. HRESULT __stdcall QueryInterface(REFIID refiid, void** ppvObject);
  13. ULONG __stdcall AddRef();
  14. ULONG __stdcall Release();
  15. //IClassFactory members
  16. HRESULT __stdcall CreateInstance(IUnknown * pUnkOuter, REFIID riid, void ** ppvObject);
  17. HRESULT __stdcall LockServer(BOOL fLock);
  18. private:
  19. ULONG m_ulLockCount;
  20. ULONG m_ulReferenceCount;
  21. IClassFactory* m_pIPIDClassFactory;
  22. };
  23. extern CIDirectInputEffectDriverClassFactory* g_pClassFactoryObject;
  24. #endif __IDirectInputEffectDriverClassFactory_H__