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.

99 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. srvnet.h
  5. Abstract:
  6. This module defines types and functions for accessing the network
  7. for the LAN Manager server.
  8. Author:
  9. Chuck Lenzmeier (chuckl) 1-Dec-1989
  10. Revision History:
  11. --*/
  12. #ifndef _SRVNET_
  13. #define _SRVNET_
  14. //#include <ntos.h>
  15. //#include "srvblock.h"
  16. //
  17. // Network manager routines
  18. //
  19. NTSTATUS
  20. SrvAddServedNet (
  21. IN PUNICODE_STRING NetworkName,
  22. IN PUNICODE_STRING TransportName,
  23. IN PANSI_STRING TransportAddress,
  24. IN PUNICODE_STRING DomainName,
  25. IN ULONG Flags,
  26. IN DWORD PasswordLength,
  27. IN PBYTE Password
  28. );
  29. NTSTATUS
  30. SrvDoDisconnect (
  31. IN OUT PCONNECTION Connection
  32. );
  33. NTSTATUS
  34. SrvDeleteServedNet (
  35. IN PUNICODE_STRING TransportName,
  36. IN PANSI_STRING TransportAddress
  37. );
  38. NTSTATUS
  39. SrvOpenConnection (
  40. IN PENDPOINT Endpoint
  41. );
  42. VOID
  43. SrvPrepareReceiveWorkItem (
  44. IN OUT PWORK_CONTEXT WorkContext,
  45. IN BOOLEAN QueueToFreeList
  46. );
  47. VOID SRVFASTCALL
  48. SrvRestartAccept (
  49. IN OUT PWORK_CONTEXT WorkContext
  50. );
  51. VOID
  52. SrvStartSend (
  53. IN OUT PWORK_CONTEXT WorkContext,
  54. IN PIO_COMPLETION_ROUTINE SendCompletionRoutine,
  55. IN PMDL Mdl OPTIONAL,
  56. IN ULONG SendOptions
  57. );
  58. VOID
  59. SrvStartSend2 (
  60. IN OUT PWORK_CONTEXT WorkContext,
  61. IN PIO_COMPLETION_ROUTINE SendCompletionRoutine
  62. );
  63. VOID SRVFASTCALL
  64. RestartStartSend (
  65. IN OUT PWORK_CONTEXT WorkContext
  66. );
  67. ULONG
  68. GetIpxMaxBufferSize(
  69. PENDPOINT Endpoint,
  70. ULONG AdapterNumber,
  71. ULONG DefaultMaxBufferSize
  72. );
  73. #endif // ndef _SRVNET_