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.

55 lines
1.3 KiB

  1. //***************************************************************************
  2. //
  3. // (c) 1999 by Microsoft Corporation
  4. //
  5. // classfac.h
  6. //
  7. // alanbos 23-Mar-99 Created.
  8. //
  9. // Class factory for WMI Scripting Host
  10. //
  11. //***************************************************************************
  12. #ifndef _CLASSFAC_H_
  13. #define _CLASSFAC_H_
  14. typedef LPVOID * PPVOID;
  15. // These variables keep track of when the module can be unloaded
  16. extern long g_cObj;
  17. extern ULONG g_cLock;
  18. //***************************************************************************
  19. //
  20. // CLASS NAME:
  21. //
  22. // CWmiScriptingHostFactory
  23. //
  24. // DESCRIPTION:
  25. //
  26. // Class factory for the CWmiScriptingHost classes.
  27. //
  28. //***************************************************************************
  29. class CWmiScriptingHostFactory : public IClassFactory
  30. {
  31. protected:
  32. long m_cRef;
  33. public:
  34. CWmiScriptingHostFactory(void);
  35. ~CWmiScriptingHostFactory(void);
  36. //IUnknown members
  37. STDMETHODIMP QueryInterface(REFIID, LPVOID*);
  38. STDMETHODIMP_(ULONG) AddRef(void);
  39. STDMETHODIMP_(ULONG) Release(void);
  40. //IClassFactory members
  41. STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, LPVOID*);
  42. STDMETHODIMP LockServer(BOOL);
  43. };
  44. #endif