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.

50 lines
1.4 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 1998 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 "ShlFldr.h"
  16. #include "ShlView.h"
  17. /**************************************************************************
  18. CClassFactory class definition
  19. **************************************************************************/
  20. class CClassFactory : public IClassFactory
  21. {
  22. private:
  23. DWORD m_ObjRefCount;
  24. public:
  25. CClassFactory();
  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. };
  35. #endif //CLASSFACTORY_H