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.

57 lines
1.6 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1995.
  5. //
  6. // File: SeqSer.hxx
  7. //
  8. // Contents: Sequential cursor for serial (unsorted) results.
  9. //
  10. // Classes: CSequentialSerial
  11. //
  12. // History: 05-Jun-95 KyleP Created
  13. //
  14. //----------------------------------------------------------------------------
  15. #include "distrib.hxx"
  16. //+---------------------------------------------------------------------------
  17. //
  18. // Class: CSequentialSerial
  19. //
  20. // Purpose: Sequential cursor for serial (unsorted) results.
  21. //
  22. // History: 05-Jun-95 KyleP Created.
  23. //
  24. //----------------------------------------------------------------------------
  25. class CSequentialSerial : public CDistributedRowset
  26. {
  27. public:
  28. CSequentialSerial( IUnknown * pUnkOuter,
  29. IUnknown ** ppMyUnk,
  30. IRowset ** aChild,
  31. unsigned cChild,
  32. CMRowsetProps const & Props,
  33. unsigned cColumns,
  34. CAccessorBag & aAccessors);
  35. STDMETHOD(RestartPosition) (HCHAPTER hChapter);
  36. protected:
  37. STDMETHOD(_GetNextRows) ( HCHAPTER hChapter,
  38. DBROWOFFSET cRowsToSkip,
  39. DBROWCOUNT cRows,
  40. DBCOUNTITEM * pcRowsObtained,
  41. HROW * * aHRows);
  42. private:
  43. ~CSequentialSerial();
  44. unsigned _iChild; // Child currently being processed.
  45. CCIOleDBError _DBErrorObj;
  46. };