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.

89 lines
2.0 KiB

  1. //***************************************************************************
  2. //
  3. // Copyright (c) 1997-1999 Microsoft Corporation
  4. //
  5. // classfac.h
  6. //
  7. // alanbos 13-Feb-98 Created.
  8. //
  9. // Class factory interface.
  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 long g_cLock;
  18. //***************************************************************************
  19. //
  20. // CLASS NAME:
  21. //
  22. // CXMLTFactory
  23. //
  24. // DESCRIPTION:
  25. //
  26. //
  27. //***************************************************************************
  28. class CWmiToXmlFactory : public IClassFactory
  29. {
  30. protected:
  31. long m_cRef;
  32. public:
  33. CWmiToXmlFactory(void);
  34. ~CWmiToXmlFactory(void);
  35. //IUnknown members
  36. STDMETHODIMP QueryInterface(REFIID, LPVOID*);
  37. STDMETHODIMP_(ULONG) AddRef(void);
  38. STDMETHODIMP_(ULONG) Release(void);
  39. //IClassFactory members
  40. STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, LPVOID*);
  41. STDMETHODIMP LockServer(BOOL);
  42. };
  43. /* Conversion to Text to Wbem Object has been cut from the WHistler Feature List and hence commented out
  44. // ***************************************************************************
  45. //
  46. // CLASS NAME:
  47. //
  48. // CXMLTFactory
  49. //
  50. // DESCRIPTION:
  51. //
  52. //
  53. // ***************************************************************************
  54. class CXmlToWmiFactory : public IClassFactory
  55. {
  56. protected:
  57. long m_cRef;
  58. public:
  59. CXmlToWmiFactory(void);
  60. ~CXmlToWmiFactory(void);
  61. //IUnknown members
  62. STDMETHODIMP QueryInterface(REFIID, LPVOID*);
  63. STDMETHODIMP_(ULONG) AddRef(void);
  64. STDMETHODIMP_(ULONG) Release(void);
  65. //IClassFactory members
  66. STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, LPVOID*);
  67. STDMETHODIMP LockServer(BOOL);
  68. };
  69. */
  70. #endif