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.

49 lines
916 B

  1. /*++
  2. Copyright (C) 2000-2001 Microsoft Corporation
  3. Module Name:
  4. Factory.h
  5. Abstract:
  6. Standard class factory implementation
  7. History:
  8. a-dcrews 01-Mar-00 Created
  9. --*/
  10. //////////////////////////////////////////////////////////////
  11. //
  12. // CClassFactory
  13. //
  14. //////////////////////////////////////////////////////////////
  15. class CClassFactory : public IClassFactory
  16. {
  17. protected:
  18. long m_lRef;
  19. public:
  20. CClassFactory() : m_lRef(0) {}
  21. // Standard COM methods
  22. // ====================
  23. STDMETHODIMP QueryInterface(REFIID riid, void** ppv);
  24. STDMETHODIMP_(ULONG) AddRef();
  25. STDMETHODIMP_(ULONG) Release();
  26. // IClassFactory COM interfaces
  27. // ============================
  28. STDMETHODIMP CreateInstance(
  29. /* [in] */ IUnknown* pUnknownOuter,
  30. /* [in] */ REFIID iid,
  31. /* [out] */ LPVOID *ppv);
  32. STDMETHODIMP LockServer(
  33. /* [in] */ BOOL bLock);
  34. };