summaryrefslogtreecommitdiffstats
path: root/private/inc/tcpsvcs.h
blob: 625ec10a5e6cf0c74841ddd1263c87ba7eb4fc83 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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_