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.

92 lines
2.9 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: RstPick.hxx
  7. //
  8. // Contents: Routines to pickle restrictions
  9. //
  10. // History: 26-Mar-93 KyleP Exported from Query
  11. //
  12. //--------------------------------------------------------------------------
  13. #pragma once
  14. //+-------------------------------------------------------------------------
  15. //
  16. // Function: PickledSizeRst, public
  17. //
  18. // Synopsis: Computes size of buffer needed to pickle restriction.
  19. //
  20. // Arguments: [pRst] -- Restriction to be pickled
  21. //
  22. // Returns: Size, in bytes, of buffer needed for pickling.
  23. //
  24. // History: 26-Mar-93 KyleP Added header
  25. //
  26. //--------------------------------------------------------------------------
  27. ULONG PickledSizeRst( CRestriction const * pRst );
  28. //+-------------------------------------------------------------------------
  29. //
  30. // Function: PickleRst, public
  31. //
  32. // Synopsis: Pickles restriction
  33. //
  34. // Arguments: [pRst] -- Restriction to be pickled
  35. // [pb] -- Pointer to buffer. [pRst] will be stored here.
  36. // Must be quad-word aligned.
  37. // [cb] -- Size, in bytes, of [pb]
  38. //
  39. // History: 26-Mar-93 KyleP Added header
  40. //
  41. //--------------------------------------------------------------------------
  42. void PickleRst( CRestriction const * pRst,
  43. BYTE * pb,
  44. ULONG cb );
  45. //+-------------------------------------------------------------------------
  46. //
  47. // Function: UnPickledSizeRst, public
  48. //
  49. // Synopsis: Computes size of buffer needed to unpickle restriction.
  50. //
  51. // Arguments: [pb] -- Buffer containing pickled restriction. Must be
  52. // quad-word aligned.
  53. // [cb] -- Size, in bytes, of [pb].
  54. //
  55. // Returns: Size, in bytes, of buffer needed for un-pickling.
  56. //
  57. // History: 26-Mar-93 KyleP Added header
  58. //
  59. //--------------------------------------------------------------------------
  60. ULONG UnPickledSizeRst( BYTE * pb, ULONG cb );
  61. //+-------------------------------------------------------------------------
  62. //
  63. // Function: UnPickleRst, public
  64. //
  65. // Synopsis: Pickles restriction
  66. //
  67. // Arguments: [ppRst] -- Pointer to unpickled restriction placed here.
  68. // Will be somewhere in [pbOutput].
  69. // [pbOutput] -- Buffer into which restriction is unpickled.
  70. // [cbOutput] -- Size, in bytes of [pbOutput]
  71. // [pbInput] -- Buffer containing pickled restriction.
  72. // [cbInput] -- Size, in bytes, of [pbInput]
  73. //
  74. // History: 26-Mar-93 KyleP Added header
  75. //
  76. //--------------------------------------------------------------------------
  77. void UnPickleRst( CRestriction ** ppRst,
  78. BYTE * pbOutput,
  79. ULONG cbOutput,
  80. BYTE * pbInput,
  81. ULONG cbInput );