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.

33 lines
1.2 KiB

  1. //////////////////////////////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Microsoft WMIOLE DB Provider
  4. // (C) Copyright 1999 Microsoft Corporation. All Rights Reserved.
  5. //
  6. // Class Definitions for CBinderClassFactory and DLL Entry Points
  7. //
  8. //////////////////////////////////////////////////////////////////////////////////////////////////////////
  9. #ifndef _BINDERCLASSFAC_H_
  10. #define _BINDERCLASSFAC_H_
  11. //////////////////////////////////////////////////////////////////////////////////////////////////////////
  12. class CBinderClassFactory : public IClassFactory
  13. {
  14. protected:
  15. ULONG m_cRef; //Reference count
  16. public:
  17. CBinderClassFactory(void);
  18. ~CBinderClassFactory(void);
  19. STDMETHODIMP QueryInterface(REFIID, LPVOID *); //Request an Interface
  20. STDMETHODIMP_(ULONG) AddRef(void); //Increments the Reference count
  21. STDMETHODIMP_(ULONG) Release(void); //Decrements the Reference count
  22. STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, LPVOID *);//Instantiates an uninitialized instance of an object
  23. STDMETHODIMP LockServer(BOOL); //Lock Object so that it can not be unloaded
  24. };
  25. #endif