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.

48 lines
1010 B

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1992.
  5. //
  6. // File: cqi.hxx
  7. //
  8. // Contents: Class to answer YES to any QueryInterface call.
  9. //
  10. // Classes: CQI
  11. //
  12. // History: 06-Aug-92 Rickhi Created
  13. //
  14. //--------------------------------------------------------------------------
  15. #ifndef __CQI__
  16. #define __CQI__
  17. //+-------------------------------------------------------------------------
  18. //
  19. // Class: CQI
  20. //
  21. // Purpose: Class to answer YES to any QueryInterface call.
  22. //
  23. // Interface: QueryInterface
  24. // AddRef
  25. // Release
  26. //
  27. // History: 06-Aug-92 Rickhi Created
  28. //
  29. //--------------------------------------------------------------------------
  30. class CQI : public IUnknown
  31. {
  32. public:
  33. CQI(void);
  34. STDMETHOD(QueryInterface)(REFIID riid, void **ppunk);
  35. STDMETHOD_(ULONG, AddRef)(void);
  36. STDMETHOD_(ULONG, Release)(void);
  37. private:
  38. ~CQI(void);
  39. ULONG _cRefs;
  40. };
  41. #endif // __CQI__