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.

58 lines
1.7 KiB

  1. /****************************************************************************
  2. MODULE: SW_CFACT.HPP
  3. Tab Settings: 5 9
  4. Copyright 1995, 1996, Microsoft Corporation, All Rights Reserved.
  5. PURPOSE: Definitions, classes, and prototypes for a DLL that
  6. provides Effect objects to any other object user.
  7. FUNCTIONS:
  8. Author(s): Name:
  9. ---------- ----------------
  10. MEA Manolito E. Adan
  11. Revision History:
  12. -----------------
  13. Version Date Author Comments
  14. ------- ------ ----- -------------------------------------------
  15. 1.0 06-Feb-97 MEA original, Based on SWForce
  16. 23-Feb-97 MEA Modified for DirectInput FF Device Driver
  17. ****************************************************************************/
  18. #ifndef _SW_CFACT_SEEN
  19. #define _SW_CFACT_SEEN
  20. //Get the object definitions
  21. #include "SW_objec.hpp"
  22. void ObjectDestroyed(void);
  23. //SW_CFACT.CPP
  24. //This class factory object creates DirectInputEffectDriver objects.
  25. class CDirectInputEffectDriverClassFactory : public IClassFactory
  26. {
  27. protected:
  28. ULONG m_cRef;
  29. public:
  30. CDirectInputEffectDriverClassFactory(void);
  31. ~CDirectInputEffectDriverClassFactory(void);
  32. //IUnknown members
  33. STDMETHODIMP QueryInterface(REFIID, PPVOID);
  34. STDMETHODIMP_(ULONG) AddRef(void);
  35. STDMETHODIMP_(ULONG) Release(void);
  36. //IClassFactory members
  37. STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID
  38. , PPVOID);
  39. STDMETHODIMP LockServer(BOOL);
  40. };
  41. typedef CDirectInputEffectDriverClassFactory *PCDirectInputEffectDriverClassFactory;
  42. #endif //_SW_CFACT_SEEN