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.

58 lines
1.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: defcf.h
  7. //
  8. // Contents: class factory for def handler and def link
  9. //
  10. // Classes: CDefClassFactory
  11. //
  12. // Functions:
  13. //
  14. // History: dd-mmm-yy Author Comment
  15. // 06-Feb-95 t-ScottH created - transfer CDefClassFactory
  16. // definition into header file from cpp file
  17. //
  18. //--------------------------------------------------------------------------
  19. #ifndef _DEFCF_H_
  20. #define _DEFCF_H_
  21. #include <stdcf.hxx>
  22. #ifdef _DEBUG
  23. #include <dbgexts.h>
  24. #endif // _DEBUG
  25. //+-------------------------------------------------------------------------
  26. //
  27. // Class: CDefClassFactory
  28. //
  29. // Purpose: The class factory for the default handler and default link
  30. //
  31. // Interface: IClassFactory
  32. //
  33. // History: dd-mmm-yy Author Comment
  34. // 09-Nov-93 alexgo 32bit port
  35. //
  36. // Notes:
  37. //
  38. //--------------------------------------------------------------------------
  39. class FAR CDefClassFactory : public CStdClassFactory, public CPrivAlloc
  40. {
  41. public:
  42. CDefClassFactory (REFCLSID clsidClass);
  43. STDMETHOD(CreateInstance) (LPUNKNOWN pUnkOuter, REFIID iid,
  44. LPVOID FAR* ppv);
  45. #ifdef _DEBUG
  46. HRESULT Dump(char **ppszDump, ULONG ulFlag, int nIndentLevel);
  47. #endif // _DEBUG
  48. private:
  49. CLSID m_clsid;
  50. SET_A5;
  51. };
  52. #endif // _DEFCF_H_