da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/*
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * CDDL HEADER START
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw *
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * The contents of this file are subject to the terms of the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Common Development and Distribution License (the "License").
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * You may not use this file except in compliance with the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw *
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * or http://www.opensolaris.org/os/licensing.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * See the License for the specific language governing permissions
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * and limitations under the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw *
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * When distributing Covered Code, include this CDDL HEADER in each
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * If applicable, add the following below this CDDL HEADER, with the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * fields enclosed by brackets "[]" replaced with your own identifying
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * information: Portions Copyright [yyyy] [name of copyright owner]
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw *
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * CDDL HEADER END
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/*
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Use is subject to license terms.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifndef _SMBSRV_MAILSLOT_H
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define _SMBSRV_MAILSLOT_H
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#pragma ident "%Z%%M% %I% %E% SMI"
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/*
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Mailslots are a one-way, unreliable IPC mechanism that allows a
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * client to send or broadcast messages to a server. The names follow
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * the same universal naming convention (UNC) used with named pipes:
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * \\server\mailslot\name, \\.\mailslot\name etc. There is a good
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * overview of mailslots, including limitations of NT and Windows 2000,
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * in Network Programming for Microsoft Windows Chapter 3.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw *
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Network Programming for Microsoft Windows
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Anthony Jones and Jim Ohlund
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Microsoft Press, ISBN 0-7356-0560-2
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw *
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * This file defines pre-defined and system common mailslots.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef __cplusplus
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwextern "C" {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/*
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * Well-known or pre-defined mailslots.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define MAILSLOT_LANMAN "\\MAILSLOT\\LANMAN"
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define MAILSLOT_MSBROWSE "\\MAILSLOT\\MSBROWSE"
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define MAILSLOT_BROWSE "\\MAILSLOT\\BROWSE"
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define MAILSLOT_NETLOGON "\\MAILSLOT\\NET\\NETLOGON"
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define MAILSLOT_NTLOGON "\\MAILSLOT\\NET\\NTLOGON"
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/*
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * System common mailslots. These should be dynamically assigned
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * at runtime but we don't support a full mailslot implementation
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * so we use a set of predefined values that appear to work.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define MAILSLOT_NETLOGON_RDC "\\MAILSLOT\\NET\\GETDC354"
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define MAILSLOT_NETLOGON_MDC "\\MAILSLOT\\NET\\GETDC576"
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define MAILSLOT_NETLOGON_SAMLOGON_RDC "\\MAILSLOT\\NET\\GETDC873"
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define MAILSLOT_NETLOGON_SAMLOGON_MDC "\\MAILSLOT\\NET\\GETDC875"
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef __cplusplus
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw}
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* _SMBSRV_MAILSLOT_H */