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.

42 lines
1.3 KiB

  1. //---------------------------------------------------------------------------
  2. // CursorErrorInfo.cpp : CVDCursor ISupportErrorInfo implementation file
  3. //
  4. // Copyright (c) 1996 Microsoft Corporation, All Rights Reserved
  5. // Developed by Sheridan Software Systems, Inc.
  6. //---------------------------------------------------------------------------
  7. #include "stdafx.h"
  8. #include "Notifier.h"
  9. #include "RSColumn.h"
  10. #include "RSSource.h"
  11. #include "CursMain.h"
  12. #include "CursBase.h"
  13. #include "fastguid.h"
  14. // needed for ASSERTs and FAIL
  15. //
  16. SZTHISFILE
  17. //=--------------------------------------------------------------------------=
  18. // ISupportErrorInfo Methods
  19. //=--------------------------------------------------------------------------=
  20. //=--------------------------------------------------------------------------=
  21. // ISupportErrorInfo InterfaceSupportsErrorInfo
  22. //
  23. HRESULT CVDCursorBase::InterfaceSupportsErrorInfo(REFIID riid)
  24. {
  25. BOOL fSupportsErrorInfo = FALSE;
  26. switch (riid.Data1)
  27. {
  28. SUPPORTS_ERROR_INFO(ICursor);
  29. SUPPORTS_ERROR_INFO(ICursorMove);
  30. SUPPORTS_ERROR_INFO(ICursorScroll);
  31. SUPPORTS_ERROR_INFO(ICursorUpdateARow);
  32. SUPPORTS_ERROR_INFO(ICursorFind);
  33. SUPPORTS_ERROR_INFO(IEntryID);
  34. }
  35. return fSupportsErrorInfo ? S_OK : S_FALSE;
  36. }