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