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.

38 lines
559 B

  1. class CFactory : public IClassFactory
  2. {
  3. public:
  4. CFactory(REFCLSID rclsid, BOOL fServer);
  5. ~CFactory(void);
  6. // IUnknown
  7. STDMETHOD(QueryInterface)(REFIID iid, void **ppv);
  8. STDMETHOD_(ULONG, AddRef)(void);
  9. STDMETHOD_(ULONG, Release)(void);
  10. // IClassFactory
  11. STDMETHOD(CreateInstance)(
  12. IUnknown FAR* pUnkOuter,
  13. REFIID riid,
  14. LPVOID FAR* ppunkObject);
  15. STDMETHOD(LockServer)(BOOL fLock);
  16. private:
  17. BOOL _fServer;
  18. CLSID _clsid;
  19. LONG _cRefs;
  20. LONG _cLocks;
  21. };