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.

35 lines
798 B

  1. #ifndef _factory_h
  2. #define _factory_h
  3. #define FD_ALLOWAGGREGATION 0x00000001
  4. struct CFactoryData
  5. {
  6. CLSID const *m_pClsid;
  7. CREATEPROC m_pCreateProc;
  8. DWORD m_dwFlags;
  9. };
  10. class CClassFactory : public IClassFactory
  11. {
  12. public:
  13. CClassFactory(const CFactoryData *pFactoryData);
  14. ~CClassFactory();
  15. // IUnknown members
  16. STDMETHODIMP QueryInterface(REFIID riid, void **ppv);
  17. STDMETHODIMP_(ULONG) AddRef();
  18. STDMETHODIMP_(ULONG) Release();
  19. // IClassFactory members
  20. STDMETHODIMP CreateInstance(LPUNKNOWN pUnkOuter, REFIID riid, void **ppvObj);
  21. STDMETHODIMP LockServer(BOOL fLock);
  22. private:
  23. ULONG m_cRef;
  24. const CFactoryData *m_pFactoryData;
  25. };
  26. #endif // _factory_h