xref: /titanic_41/usr/src/uts/common/smbsrv/mailslot.h (revision da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 #ifndef _SMBSRV_MAILSLOT_H
27 #define	_SMBSRV_MAILSLOT_H
28 
29 #pragma ident	"%Z%%M%	%I%	%E% SMI"
30 
31 /*
32  * Mailslots are a one-way, unreliable IPC mechanism that allows a
33  * client to send or broadcast messages to a server. The names follow
34  * the same universal naming convention (UNC) used with named pipes:
35  * \\server\mailslot\name, \\.\mailslot\name etc. There is a good
36  * overview of mailslots, including limitations of NT and Windows 2000,
37  * in Network Programming for Microsoft Windows Chapter 3.
38  *
39  * Network Programming for Microsoft Windows
40  * Anthony Jones and Jim Ohlund
41  * Microsoft Press, ISBN 0-7356-0560-2
42  *
43  * This file defines pre-defined and system common mailslots.
44  */
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49 
50 /*
51  * Well-known or pre-defined mailslots.
52  */
53 #define	MAILSLOT_LANMAN			"\\MAILSLOT\\LANMAN"
54 #define	MAILSLOT_MSBROWSE		"\\MAILSLOT\\MSBROWSE"
55 #define	MAILSLOT_BROWSE			"\\MAILSLOT\\BROWSE"
56 #define	MAILSLOT_NETLOGON		"\\MAILSLOT\\NET\\NETLOGON"
57 #define	MAILSLOT_NTLOGON		"\\MAILSLOT\\NET\\NTLOGON"
58 
59 
60 /*
61  * System common mailslots. These should be dynamically assigned
62  * at runtime but we don't support a full mailslot implementation
63  * so we use a set of predefined values that appear to work.
64  */
65 #define	MAILSLOT_NETLOGON_RDC		"\\MAILSLOT\\NET\\GETDC354"
66 #define	MAILSLOT_NETLOGON_MDC		"\\MAILSLOT\\NET\\GETDC576"
67 #define	MAILSLOT_NETLOGON_SAMLOGON_RDC	"\\MAILSLOT\\NET\\GETDC873"
68 #define	MAILSLOT_NETLOGON_SAMLOGON_MDC	"\\MAILSLOT\\NET\\GETDC875"
69 
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 
76 #endif /* _SMBSRV_MAILSLOT_H */
77