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.

81 lines
1.6 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: msvlayer.c
  7. //
  8. // Contents: Support for the fake MSV layer
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 5-31-93 RichardW Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #include <lsapch.hxx>
  18. extern "C"
  19. {
  20. #include "sesmgr.h"
  21. #include "spdebug.h"
  22. #include <ntmsv1_0.h>
  23. }
  24. NTSTATUS
  25. LsapAllocateClientBuffer(
  26. IN PLSA_CLIENT_REQUEST ClientRequest,
  27. IN ULONG LengthRequired,
  28. OUT PVOID *ClientBaseAddress
  29. )
  30. {
  31. DebugLog((DEB_TRACE_LSA_AU, "package called LsapAllocateClientBuffer\n"));
  32. *ClientBaseAddress = LsapClientAllocate(LengthRequired);
  33. if (*ClientBaseAddress == NULL)
  34. {
  35. return(STATUS_NO_MEMORY);
  36. }
  37. else
  38. {
  39. return(STATUS_SUCCESS);
  40. }
  41. }
  42. NTSTATUS
  43. LsapFreeClientBuffer(
  44. IN PLSA_CLIENT_REQUEST ClientRequest,
  45. IN PVOID ClientBaseAddress
  46. )
  47. {
  48. DebugLog((DEB_TRACE_LSA_AU, "package called LsapFreeClientBuffer\n"));
  49. LsapClientFree(ClientBaseAddress);
  50. return(STATUS_SUCCESS);
  51. }
  52. NTSTATUS
  53. LsapCopyToClientBuffer(
  54. IN PLSA_CLIENT_REQUEST ClientRequest,
  55. IN ULONG Length,
  56. IN PVOID ClientBaseAddress,
  57. IN PVOID BufferToCopy
  58. )
  59. {
  60. return(LsapCopyToClient(BufferToCopy, ClientBaseAddress, Length));
  61. }
  62. NTSTATUS
  63. LsapCopyFromClientBuffer(
  64. IN PLSA_CLIENT_REQUEST ClientRequest,
  65. IN ULONG Length,
  66. IN PVOID BufferToCopy,
  67. IN PVOID ClientBaseAddress
  68. )
  69. {
  70. return(LsapCopyFromClient(ClientBaseAddress, BufferToCopy, Length));
  71. }