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.

29 lines
763 B

  1. #ifndef _CLASSFAC_H_
  2. #define _CLASSFAC_H_
  3. //****************************************************************************
  4. // CClassFactory definition
  5. //****************************************************************************
  6. //
  7. class CClassFactory : public IClassFactory
  8. {
  9. private:
  10. ULONG cRef;
  11. public:
  12. // Constructor
  13. CClassFactory(void);
  14. // IUnknown
  15. STDMETHODIMP QueryInterface (REFIID iid, void **ppv);
  16. STDMETHODIMP_(ULONG) AddRef (void);
  17. STDMETHODIMP_(ULONG) Release (void);
  18. // IClassFactory
  19. STDMETHODIMP CreateInstance (LPUNKNOWN punkOuter, REFIID iid, void **ppv);
  20. STDMETHODIMP LockServer (BOOL fLock);
  21. };
  22. extern CClassFactory* g_pClassFactory;
  23. #endif // ! _CLASSFAC_H_