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.

153 lines
3.2 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. net\routing\ipx\sap\lpcmgr.h
  5. Abstract:
  6. Header for SAP LPC manager
  7. Author:
  8. Vadim Eydelman 05-15-1995
  9. Revision History:
  10. --*/
  11. #ifndef _SAP_LPCMGR_
  12. #define _SAP_LPCMGR_
  13. #include "nwsap.h"
  14. #include "saplpc.h"
  15. // LPC parameters associated with LPC request
  16. typedef struct _LPC_PARAM_BLOCK {
  17. HANDLE client; // Client context
  18. PNWSAP_REQUEST_MESSAGE request;// Request block
  19. } LPC_PARAM_BLOCK, *PLPC_PARAM_BLOCK;
  20. /*++
  21. *******************************************************************
  22. I n i t i a l i z e L P C S t u f f
  23. Routine Description:
  24. Allocates resources neccessary to implement LPC interface
  25. Arguments:
  26. None
  27. Return Value:
  28. NO_ERROR - port was created OK
  29. other - operation failed (windows error code)
  30. *******************************************************************
  31. --*/
  32. DWORD
  33. InitializeLPCStuff (
  34. void
  35. );
  36. /*++
  37. *******************************************************************
  38. S t a r t L P C
  39. Routine Description:
  40. Start SAP LPC interface
  41. Arguments:
  42. None
  43. Return Value:
  44. NO_ERROR - LPC interface was started OK
  45. other - operation failed (windows error code)
  46. *******************************************************************
  47. --*/
  48. DWORD
  49. StartLPC (
  50. void
  51. );
  52. /*++
  53. *******************************************************************
  54. S h u t d o w n L P C
  55. Routine Description:
  56. Shuts SAP LPC interface down, closes all active sessions
  57. Arguments:
  58. None
  59. Return Value:
  60. NO_ERROR - LPC interface was shutdown OK
  61. other - operation failed (windows error code)
  62. *******************************************************************
  63. --*/
  64. DWORD
  65. ShutdownLPC (
  66. void
  67. );
  68. /*++
  69. *******************************************************************
  70. D e l e t e L P C S t u f f
  71. Routine Description:
  72. Disposes of resources allocated for LPC interface
  73. Arguments:
  74. None
  75. Return Value:
  76. None
  77. *******************************************************************
  78. --*/
  79. VOID
  80. DeleteLPCStuff (
  81. void
  82. );
  83. /*++
  84. *******************************************************************
  85. P r o c e s s L P C R e q u e s t s
  86. Routine Description:
  87. Waits for requests on LPC port and processes them
  88. Client requests that require additional processing by other SAP
  89. components are enqued into completion queue.
  90. This routine returns only when it encounters a request that requires
  91. additional processing or when error occurs
  92. Arguments:
  93. lreq - LPC parameter block to be filled and posted to completions queue
  94. Return Value:
  95. NO_ERROR - LPC request was received and posted to completio queue
  96. other - operation failed (LPC supplied error code)
  97. *******************************************************************
  98. --*/
  99. DWORD
  100. ProcessLPCRequests (
  101. PLPC_PARAM_BLOCK item
  102. );
  103. /*++
  104. *******************************************************************
  105. S e n d L P C R e p l y
  106. Routine Description:
  107. Send reply for LPC request
  108. Arguments:
  109. client - context associated with client to reply to
  110. request - request to which to reply
  111. reply - reply to send
  112. Return Value:
  113. NO_ERROR - LPC reply was sent OK
  114. other - operation failed (LPC supplied error code)
  115. *******************************************************************
  116. --*/
  117. DWORD
  118. SendLPCReply (
  119. HANDLE client,
  120. PNWSAP_REQUEST_MESSAGE request,
  121. PNWSAP_REPLY_MESSAGE reply
  122. );
  123. #endif