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