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.

54 lines
1.5 KiB

  1. /**************************************************************************
  2. THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  3. ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  4. THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  5. PARTICULAR PURPOSE.
  6. Copyright 1997 Microsoft Corporation. All Rights Reserved.
  7. **************************************************************************/
  8. /**************************************************************************
  9. File: ClsFact.h
  10. Description: CClassFactory definitions.
  11. **************************************************************************/
  12. #ifndef _CLASSFACTORY_H_
  13. #define _CLASSFACTORY_H_
  14. #include <windows.h>
  15. #include "Globals.h"
  16. #include "DeskBand.h"
  17. /**************************************************************************
  18. CClassFactory class definition
  19. **************************************************************************/
  20. class CClassFactory : public IClassFactory
  21. {
  22. protected:
  23. DWORD m_ObjRefCount;
  24. public:
  25. CClassFactory(CLSID);
  26. ~CClassFactory();
  27. //IUnknown methods
  28. STDMETHODIMP QueryInterface(REFIID, LPVOID*);
  29. STDMETHODIMP_(DWORD) AddRef();
  30. STDMETHODIMP_(DWORD) Release();
  31. //IClassFactory methods
  32. STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, LPVOID*);
  33. STDMETHODIMP LockServer(BOOL);
  34. private:
  35. CLSID m_clsidObject;
  36. };
  37. #endif // _CLASSFACTORY_H_