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.

66 lines
1.1 KiB

  1. //\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\
  2. //
  3. // clsfact.h
  4. //
  5. // Definitions for the cdf viewer class factory..
  6. //
  7. // History:
  8. //
  9. // 3/16/97 edwardp Created.
  10. //
  11. ////////////////////////////////////////////////////////////////////////////////
  12. //
  13. // Check for previous includes of this file.
  14. //
  15. #ifndef _CLSFACT_H_
  16. #define _CLSFACT_H_
  17. //
  18. // Prototype for function used in class factory to create objects.
  19. typedef HRESULT (*CREATEPROC)(IUnknown** ppIUnknown);
  20. //
  21. // Class definition for the class factory
  22. //
  23. class CCdfClassFactory : public IClassFactory
  24. {
  25. //
  26. // Methods
  27. //
  28. public:
  29. // Constructor
  30. CCdfClassFactory(CREATEPROC pfn);
  31. // IUnknown
  32. STDMETHODIMP QueryInterface(REFIID, void **);
  33. STDMETHODIMP_(ULONG) AddRef(void);
  34. STDMETHODIMP_(ULONG) Release(void);
  35. //IClassFactory
  36. STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, void **);
  37. STDMETHODIMP LockServer(BOOL);
  38. private:
  39. // Destructor
  40. ~CCdfClassFactory(void);
  41. //
  42. // Members
  43. //
  44. private:
  45. ULONG m_cRef;
  46. CREATEPROC m_Create;
  47. };
  48. #endif // _CLSFACT_H_