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.

68 lines
1.8 KiB

  1. #ifndef _INC_DSKQUOTA_FACTORY_H
  2. #define _INC_DSKQUOTA_FACTORY_H
  3. ///////////////////////////////////////////////////////////////////////////////
  4. /* File: factory.h
  5. Description: Contains declaration for the class factory object.
  6. Revision History:
  7. Date Description Programmer
  8. -------- --------------------------------------------------- ----------
  9. 05/22/96 Initial creation. BrianAu
  10. 08/15/96 Added shell extension support. BrianAu
  11. 08/20/97 Added IDispatch support. BrianAu
  12. */
  13. ///////////////////////////////////////////////////////////////////////////////
  14. class DiskQuotaControlClassFactory : public IClassFactory
  15. {
  16. private:
  17. LONG m_cRef;
  18. HRESULT Create_IDiskQuotaControl(REFIID riid, LPVOID *ppvOut);
  19. //
  20. // Prevent copying.
  21. //
  22. DiskQuotaControlClassFactory(const DiskQuotaControlClassFactory&);
  23. void operator = (const DiskQuotaControlClassFactory&);
  24. public:
  25. DiskQuotaControlClassFactory(void)
  26. : m_cRef(0)
  27. { DBGTRACE((DM_CONTROL, DL_MID, TEXT("DiskQuotaControlClassFactory::DiskQuotaControlClassFactory"))); }
  28. //
  29. // IUnknown methods
  30. //
  31. STDMETHODIMP
  32. QueryInterface(
  33. REFIID,
  34. LPVOID *);
  35. STDMETHODIMP_(ULONG)
  36. AddRef(
  37. VOID);
  38. STDMETHODIMP_(ULONG)
  39. Release(
  40. VOID);
  41. //
  42. // IClassFactory methods
  43. //
  44. STDMETHODIMP
  45. CreateInstance(
  46. LPUNKNOWN pUnkOuter,
  47. REFIID riid,
  48. LPVOID *ppvOut);
  49. STDMETHODIMP
  50. LockServer(
  51. BOOL fLock);
  52. };
  53. #endif // _INC_DSKQUOTA_FACTORY_H