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.

42 lines
1.0 KiB

  1. /*
  2. - COM.H
  3. -
  4. * Microsoft NetMeeting
  5. * Network Audio Controller (NAC) DLL
  6. * Internal header file for general COM "things"
  7. *
  8. * Revision History:
  9. *
  10. * When Who What
  11. * -------- ------------------ ---------------------------------------
  12. * 2.3.97 Yoram Yaacovi Created
  13. *
  14. */
  15. #include <pshpack8.h> /* Assume 8 byte packing throughout */
  16. /*
  17. * Class factory
  18. */
  19. typedef HRESULT (STDAPICALLTYPE *PFNCREATE)(IUnknown *, REFIID, void **);
  20. class CClassFactory : public IClassFactory
  21. {
  22. public:
  23. //IUnknown members
  24. STDMETHODIMP QueryInterface(REFIID, void **);
  25. STDMETHODIMP_(ULONG) AddRef(void);
  26. STDMETHODIMP_(ULONG) Release(void);
  27. //IClassFactory members
  28. STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, void **);
  29. STDMETHODIMP LockServer(BOOL);
  30. CClassFactory(PFNCREATE);
  31. ~CClassFactory(void);
  32. protected:
  33. ULONG m_cRef;
  34. PFNCREATE m_pfnCreate;
  35. };
  36. #include <poppack.h> /* End byte packing */