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.

64 lines
1.7 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1992.
  5. //
  6. // File: Pickle.hxx
  7. //
  8. // Contents: Pickling/Unpickling routines for restrictions.
  9. //
  10. // History: 22-Dec-92 KyleP Created
  11. //
  12. //--------------------------------------------------------------------------
  13. #pragma once
  14. // Global includes:
  15. #include <rstpick.hxx>
  16. class CRestriction;
  17. class CPidMapper;
  18. class CSortSet;
  19. class CCategorizationSet;
  20. class CRowsetProperties;
  21. class CColumnSet;
  22. ULONG PickledSize( int iServerVersion,
  23. CColumnSet const * pcol,
  24. CRestriction const * prst,
  25. CSortSet const * pso,
  26. CCategorizationSet const *pcateg,
  27. CRowsetProperties const * pRstProp,
  28. CPidMapper const * pidmap );
  29. void Pickle( int iServerVersion,
  30. CColumnSet const * pcol,
  31. CRestriction const * prst,
  32. CSortSet const * pso,
  33. CCategorizationSet const *pcateg,
  34. CRowsetProperties const * pRstProp,
  35. CPidMapper const * pidmap,
  36. BYTE * pb,
  37. ULONG cb );
  38. void UnPickle( int iClientVersion,
  39. XColumnSet & col,
  40. XRestriction & rst,
  41. XSortSet & sort,
  42. XCategorizationSet &categ,
  43. CRowsetProperties & rstprop,
  44. XPidMapper & pidmap,
  45. BYTE * pbInput,
  46. ULONG cbInput );
  47. // Form of column set placed in the serialization buffer: none present,
  48. // derived from COLUMNSET, or derived from DBCOLUMNBINDING.
  49. //
  50. enum {
  51. PickleColNone = 0,
  52. PickleColSet,
  53. };