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.

101 lines
1.6 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Copyright (C) 1997, Microsoft Corporation.
  4. //
  5. // File: DFSLPC.H
  6. //
  7. // Contents: This module provides the prototypes and structures for
  8. // the routines associated with lpc calls
  9. //
  10. // Functions:
  11. //
  12. //-----------------------------------------------------------------------------
  13. #ifndef _DFSLPC_H_
  14. #define _DFSLPC_H_
  15. NTSTATUS
  16. DfsLpcIpRequest (
  17. PDFS_IPADDRESS pIpAddress
  18. );
  19. NTSTATUS
  20. DfsLpcDomRequest (
  21. PUNICODE_STRING pFtDfsName
  22. );
  23. NTSTATUS
  24. DfsLpcSpcRequest (
  25. PUNICODE_STRING pSpcName,
  26. ULONG TypeFlags
  27. );
  28. VOID
  29. DfsLpcDisconnect(
  30. );
  31. NTSTATUS
  32. PktFsctrlDfsSrvConnect(
  33. IN PIRP Irp,
  34. IN PVOID InputBuffer,
  35. IN ULONG InputBufferLength
  36. );
  37. NTSTATUS
  38. PktFsctrlDfsSrvIpAddr(
  39. IN PIRP Irp,
  40. IN PVOID InputBuffer,
  41. IN ULONG InputBufferLength
  42. );
  43. //
  44. // Lpc port states
  45. //
  46. typedef enum {
  47. LPC_STATE_UNINITIALIZED = 0,
  48. LPC_STATE_INITIALIZING = 1,
  49. LPC_STATE_INITIALIZED = 2,
  50. } LPC_PORT_STATE;
  51. //
  52. // Struct containing the LPC state and name of the port to connect to
  53. //
  54. typedef struct _DFS_LPC_INFO {
  55. //
  56. // the name of the lpc port to connect to
  57. //
  58. UNICODE_STRING LpcPortName;
  59. //
  60. // state of the connect
  61. //
  62. LPC_PORT_STATE LpcPortState;
  63. //
  64. // A mutex to handle open port races
  65. //
  66. FAST_MUTEX LpcPortMutex;
  67. //
  68. // Lpc port handle
  69. //
  70. HANDLE LpcPortHandle;
  71. //
  72. // Resource for close
  73. //
  74. ERESOURCE LpcPortResource;
  75. } DFS_LPC_INFO, *PDFS_LPC_INFO;
  76. #endif // _DFSLPC_H_