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.

112 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1989-2001 Microsoft Corporation
  3. Module Name:
  4. session.h
  5. Abstract:
  6. Implement session service
  7. Author:
  8. Jiandong Ruan
  9. Revision History:
  10. --*/
  11. #ifndef __SESSION_H__
  12. #define __SESSION_H__
  13. NTSTATUS
  14. SmbCreateConnection(
  15. PSMB_DEVICE Device,
  16. PIRP Irp,
  17. PFILE_FULL_EA_INFORMATION ea
  18. );
  19. NTSTATUS
  20. SmbCloseConnection(
  21. PSMB_DEVICE Device,
  22. PIRP Irp
  23. );
  24. NTSTATUS
  25. SmbAssociateAddress(
  26. PSMB_DEVICE Device,
  27. PIRP Irp
  28. );
  29. NTSTATUS
  30. SmbDisAssociateAddress(
  31. PSMB_DEVICE Device,
  32. PIRP Irp
  33. );
  34. NTSTATUS
  35. SmbConnect(
  36. PSMB_DEVICE Device,
  37. PIRP Irp
  38. );
  39. NTSTATUS
  40. SmbListen(
  41. PSMB_DEVICE Device,
  42. PIRP Irp
  43. );
  44. NTSTATUS
  45. SmbDisconnect(
  46. PSMB_DEVICE Device,
  47. PIRP Irp
  48. );
  49. NTSTATUS
  50. SmbAccept(
  51. PSMB_DEVICE Device,
  52. PIRP Irp
  53. );
  54. NTSTATUS
  55. SmbSend(
  56. PSMB_DEVICE Device,
  57. PIRP Irp
  58. );
  59. NTSTATUS
  60. SmbReceive(
  61. PSMB_DEVICE Device,
  62. PIRP Irp
  63. );
  64. void
  65. SmbSessionCompleteRequest(
  66. PSMB_CONNECT ConnectObject,
  67. NTSTATUS status,
  68. DWORD information
  69. );
  70. PSMB_CONNECT
  71. SmbVerifyAndReferenceConnect(
  72. PFILE_OBJECT FileObject,
  73. SMB_REF_CONTEXT ctx
  74. );
  75. NTSTATUS
  76. SmbDoDisconnect(
  77. PSMB_CONNECT ConnectObject
  78. );
  79. VOID
  80. SmbDisconnectCleanup(
  81. IN PSMB_DEVICE DeviceObject,
  82. IN PSMB_CLIENT_ELEMENT ClientObject,
  83. IN PSMB_CONNECT ConnectObject,
  84. IN PSMB_TCP_CONTEXT TcpContext,
  85. IN DWORD dwFlag,
  86. IN BOOL bWait
  87. );
  88. #endif