From e611b132f9b8abe35b362e5870b74bce94a1e58e Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 16 May 2020 20:51:50 -0700 Subject: initial commit --- private/inc/tcpsvcs.h | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 private/inc/tcpsvcs.h (limited to 'private/inc/tcpsvcs.h') diff --git a/private/inc/tcpsvcs.h b/private/inc/tcpsvcs.h new file mode 100644 index 000000000..625ec10a5 --- /dev/null +++ b/private/inc/tcpsvcs.h @@ -0,0 +1,87 @@ +/*++ + +Copyright (c) 1993 Microsoft Corporation + +Module Name: + + Tcpsvcs.h + +Abstract: + + Header file fr TCP/IP services. + +Author: + + David Treadwell (davidtr) 7-27-93 + +Revision History: + +--*/ + +#ifndef _TCPSVCS_ +#define _TCPSVCS_ + +// +// Service DLLs loaded into tcpsvcs.exe all export the same main +// entry point. TCPSVCS_ENTRY_POINT defines that name. +// +// Note that TCPSVCS_ENTRY_POINT_STRING is always ANSI, because that's +// what GetProcAddress takes. +// + +#define TCPSVCS_ENTRY_POINT ServiceEntry +#define TCPSVCS_ENTRY_POINT_STRING "ServiceEntry" + +// +// Name for the common RPC pipe shared by all the RPC servers in tcpsvcs.exe. +// Note: Because version 1.0 of WinNt had seperate names for each server's +// pipe, the client side names have remained the same. Mapping to the new +// name is handled by the named pipe file system. +// + +#define TCPSVCS_RPC_PIPE L"nttcpsvcs" + +// +// Start and stop RPC server entry point prototype. +// + +typedef +DWORD +(*PTCPSVCS_START_RPC_SERVER_LISTEN) ( + VOID + ); + +typedef +DWORD +(*PTCPSVCS_STOP_RPC_SERVER_LISTEN) ( + VOID + ); + +// +// Structure containing "global" data for the various DLLs. +// + +typedef struct _TCPSVCS_GLOBAL_DATA { + + // + // Entry points provided by TCPSVCS.EXE. + // + + PTCPSVCS_START_RPC_SERVER_LISTEN StartRpcServerListen; + PTCPSVCS_STOP_RPC_SERVER_LISTEN StopRpcServerListen; + +} TCPSVCS_GLOBAL_DATA, *PTCPSVCS_GLOBAL_DATA; + +// +// Service DLL entry point prototype. +// + +typedef +VOID +(*PTCPSVCS_SERVICE_DLL_ENTRY) ( + IN DWORD argc, + IN LPTSTR argv[], + IN PTCPSVCS_GLOBAL_DATA pGlobalData + ); + +#endif // ndef _TCPSVCS_ -- cgit v1.2.3