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.

53 lines
1.4 KiB

  1. //-----------------------------------------------------------------------------------
  2. // Microsoft OLE DB Provider for ODBC data
  3. // (C) Copyright 1994 - 1996 By Microsoft Corporation.
  4. //
  5. // @doc
  6. //
  7. // @module ROWPROV.H | Definition of the Row Provider interface used by the generic
  8. // flavor of the TempTable.
  9. //
  10. //
  11. // @rev 1 | 04-03-96 | WlodekN | Created
  12. // @rev 2 | 07-24-96 | EricJ | Added PropID
  13. //
  14. //-----------------------------------------------------------------------------------
  15. #ifndef __ROWPROV_INCL__
  16. #define __ROWPROV_INCL__
  17. //---------------------------------- C L A S S E S ----------------------------------
  18. // Abstract class for objects providing row data to the generic TempTable.
  19. class IRowProvider : public IUnknown
  20. {
  21. public:
  22. virtual STDMETHODIMP GetColumn
  23. (
  24. ULONG icol,
  25. DBSTATUS *pwStatus,
  26. ULONG *pdwLength,
  27. BYTE *pbData
  28. ) = 0;
  29. virtual STDMETHODIMP NextRow
  30. (
  31. void
  32. ) = 0;
  33. };
  34. EXTERN_C const IID IID_IRowProvider;
  35. EXTERN_C const GUID DBPROPSET_TEMPTABLE;
  36. // TempTable Property IDs.
  37. enum tagetmptablepropid
  38. {
  39. DBPROP_INSTANTPOPULATION=2, // TRUE = Prepopulate. FALSE = Lazy population.
  40. DBPROP_DBCOLBYREF, // TRUE = Clear BYREF flags from IColumnsInfo, source owns memory.
  41. DBPROP_DONTALLOCBYREFCOLS, // TRUE = TempTable only allocates ptr for BYREF columns.
  42. };
  43. #endif // __ROWPROV_INCL__
  44.