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.

48 lines
1.3 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  4. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  5. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  6. // PARTICULAR PURPOSE.
  7. //
  8. // Copyright 1998 Microsoft Corporation. All Rights Reserved.
  9. //
  10. // Author: Scott Roberts, Microsoft Developer Support - Internet Client SDK
  11. //
  12. // Portions of this code were taken from the bandobj sample that comes
  13. // with the Internet Client SDK for Internet Explorer 4.0x
  14. //
  15. //
  16. // ClsFact.h - CClassFactory declaration
  17. /////////////////////////////////////////////////////////////////////////////
  18. #ifndef __ClsFact_h__
  19. #define __ClsFact_h__
  20. #include <windows.h>
  21. #include "Globals.h"
  22. #include "blhost.h"
  23. class CClassFactory : public IClassFactory
  24. {
  25. public:
  26. CClassFactory(CLSID);
  27. ~CClassFactory();
  28. //IUnknown methods
  29. STDMETHOD(QueryInterface)(REFIID iid, LPVOID* ppvObject);
  30. STDMETHOD_(ULONG, AddRef)();
  31. STDMETHOD_(ULONG, Release)();
  32. //IClassFactory methods
  33. STDMETHOD(CreateInstance)(LPUNKNOWN pUnkOuter, REFIID riid, LPVOID* ppvObject);
  34. STDMETHOD(LockServer)(BOOL fLock);
  35. protected:
  36. LONG m_cRef;
  37. private:
  38. CLSID m_clsidObject;
  39. };
  40. #endif // __ClsFact_h__