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.

40 lines
1.0 KiB

  1. /////////////////////////////////////////////////////////////////////////////////////
  2. // MPEG2TuneRequest.cpp : Implementation of CMPEG2TuneRequest
  3. // Copyright (c) Microsoft Corporation 1999.
  4. #include "stdafx.h"
  5. #include "Tuner.h"
  6. #include "MPEG2TuneRequest.h"
  7. DEFINE_EXTERN_OBJECT_ENTRY(CLSID_MPEG2TuneRequestFactory, CMPEG2TuneRequestFactory)
  8. DEFINE_EXTERN_OBJECT_ENTRY(CLSID_MPEG2TuneRequest, CMPEG2TuneRequest)
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CMPEG2TuneRequest
  11. STDMETHODIMP CMPEG2TuneRequest::InterfaceSupportsErrorInfo(REFIID riid)
  12. {
  13. static const IID* arr[] =
  14. {
  15. &IID_IMPEG2TuneRequest
  16. };
  17. for (int i=0; i < sizeof(arr) / sizeof(arr[0]); i++)
  18. {
  19. if (InlineIsEqualGUID(*arr[i],riid))
  20. return S_OK;
  21. }
  22. return S_FALSE;
  23. }
  24. STDMETHODIMP CMPEG2TuneRequestFactory::InterfaceSupportsErrorInfo(REFIID riid)
  25. {
  26. static const IID* arr[] =
  27. {
  28. &IID_IMPEG2TuneRequestFactory
  29. };
  30. for (int i=0; i < sizeof(arr) / sizeof(arr[0]); i++)
  31. {
  32. if (InlineIsEqualGUID(*arr[i],riid))
  33. return S_OK;
  34. }
  35. return S_FALSE;
  36. }