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.

44 lines
1.1 KiB

  1. //------------------------------------------------------------------------------
  2. //
  3. // File: classfact.h
  4. // Copyright (C) 1995-1997 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // Purpose:
  8. // Declaration of CLocImpClassFactory, which provides the IClassFactory
  9. // interface for the parser.
  10. //
  11. // YOU SHOULD NOT NEED TO TOUCH ANYTHING IN THIS FILE. This code contains
  12. // nothing parser-specific and is called only by Espresso.
  13. //
  14. // Owner:
  15. //
  16. //------------------------------------------------------------------------------
  17. #ifndef CLASFACT_H
  18. #define CLASFACT_H
  19. class CLocImpClassFactory : public IClassFactory, public CLObject
  20. {
  21. public:
  22. CLocImpClassFactory();
  23. ~CLocImpClassFactory();
  24. #ifdef _DEBUG
  25. void AssertValid() const;
  26. void Dump(CDumpContext &) const;
  27. #endif
  28. STDMETHOD_(ULONG, AddRef)();
  29. STDMETHOD_(ULONG, Release)();
  30. STDMETHOD(QueryInterface)(REFIID iid, LPVOID* ppvObj);
  31. STDMETHOD(CreateInstance)(THIS_ LPUNKNOWN, REFIID, LPVOID *);
  32. STDMETHOD(LockServer)(THIS_ BOOL);
  33. private:
  34. UINT m_uiRefCount;
  35. };
  36. #endif // CLASFACT_H