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.

87 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. Tcpsvcs.h
  5. Abstract:
  6. Header file fr TCP/IP services.
  7. Author:
  8. David Treadwell (davidtr) 7-27-93
  9. Revision History:
  10. --*/
  11. #ifndef _TCPSVCS_
  12. #define _TCPSVCS_
  13. //
  14. // Service DLLs loaded into tcpsvcs.exe all export the same main
  15. // entry point. TCPSVCS_ENTRY_POINT defines that name.
  16. //
  17. // Note that TCPSVCS_ENTRY_POINT_STRING is always ANSI, because that's
  18. // what GetProcAddress takes.
  19. //
  20. #define TCPSVCS_ENTRY_POINT ServiceEntry
  21. #define TCPSVCS_ENTRY_POINT_STRING "ServiceEntry"
  22. //
  23. // Name for the common RPC pipe shared by all the RPC servers in tcpsvcs.exe.
  24. // Note: Because version 1.0 of WinNt had seperate names for each server's
  25. // pipe, the client side names have remained the same. Mapping to the new
  26. // name is handled by the named pipe file system.
  27. //
  28. #define TCPSVCS_RPC_PIPE L"nttcpsvcs"
  29. //
  30. // Start and stop RPC server entry point prototype.
  31. //
  32. typedef
  33. DWORD
  34. (*PTCPSVCS_START_RPC_SERVER_LISTEN) (
  35. VOID
  36. );
  37. typedef
  38. DWORD
  39. (*PTCPSVCS_STOP_RPC_SERVER_LISTEN) (
  40. VOID
  41. );
  42. //
  43. // Structure containing "global" data for the various DLLs.
  44. //
  45. typedef struct _TCPSVCS_GLOBAL_DATA {
  46. //
  47. // Entry points provided by TCPSVCS.EXE.
  48. //
  49. PTCPSVCS_START_RPC_SERVER_LISTEN StartRpcServerListen;
  50. PTCPSVCS_STOP_RPC_SERVER_LISTEN StopRpcServerListen;
  51. } TCPSVCS_GLOBAL_DATA, *PTCPSVCS_GLOBAL_DATA;
  52. //
  53. // Service DLL entry point prototype.
  54. //
  55. typedef
  56. VOID
  57. (*PTCPSVCS_SERVICE_DLL_ENTRY) (
  58. IN DWORD argc,
  59. IN LPTSTR argv[],
  60. IN PTCPSVCS_GLOBAL_DATA pGlobalData
  61. );
  62. #endif // ndef _TCPSVCS_