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.

77 lines
1.7 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 <ntmsv1_0.h>
  22. }
  23. NTSTATUS
  24. LsapAllocateClientBuffer(
  25. IN PLSA_CLIENT_REQUEST ClientRequest,
  26. IN ULONG LengthRequired,
  27. OUT PVOID *ClientBaseAddress
  28. )
  29. {
  30. DebugLog((DEB_TRACE_LSA_AU, "package called LsapAllocateClientBuffer\n"));
  31. *ClientBaseAddress = LsapClientAllocate(LengthRequired);
  32. if (*ClientBaseAddress == NULL)
  33. {
  34. return(STATUS_NO_MEMORY);
  35. }
  36. else
  37. {
  38. return(STATUS_SUCCESS);
  39. }
  40. }
  41. NTSTATUS
  42. LsapFreeClientBuffer(
  43. IN PLSA_CLIENT_REQUEST ClientRequest,
  44. IN PVOID ClientBaseAddress
  45. )
  46. {
  47. DebugLog((DEB_TRACE_LSA_AU, "package called LsapFreeClientBuffer\n"));
  48. LsapClientFree(ClientBaseAddress);
  49. return(STATUS_SUCCESS);
  50. }
  51. NTSTATUS
  52. LsapCopyToClientBuffer(
  53. IN PLSA_CLIENT_REQUEST ClientRequest,
  54. IN ULONG Length,
  55. IN PVOID ClientBaseAddress,
  56. IN PVOID BufferToCopy
  57. )
  58. {
  59. return(LsapCopyToClient(BufferToCopy, ClientBaseAddress, Length));
  60. }
  61. NTSTATUS
  62. LsapCopyFromClientBuffer(
  63. IN PLSA_CLIENT_REQUEST ClientRequest,
  64. IN ULONG Length,
  65. IN PVOID BufferToCopy,
  66. IN PVOID ClientBaseAddress
  67. )
  68. {
  69. return(LsapCopyFromClient(ClientBaseAddress, BufferToCopy, Length));
  70. }