Mailslot Names
Collapse the table of content
Expand the table of content

Mailslot Names

When a process creates a mailslot, the mailslot name must have the following form.


A mailslot name requires the following elements: two backslashes to begin the name, a period, a backslash following the period, the word "mailslot", and a trailing backslash. Names are not case sensitive. A mailslot name can be preceded by a path consisting of the names of one or more directories, separated by backslashes. For example, if a user expects messages on the subject of taxes from Bob, Pete, and Sue, the user's mailslot application might allow the user to create individual mailslots for each sender, as shown here:


To put a message into a mailslot, a process opens a mailslot by name. To write to a mailslot on the local computer, a process can use a mailslot name that has the same form used for creating a mailslot. This situation, however, is relatively uncommon. More frequently, you would use the following form to write to a mailslot on a specific remote computer:


To put a message into every mailslot in the specified domain with a given name, use the following form:


To put a message into every mailslot with a given name in the system's primary domain, use the following form:




Community Additions

© 2015 Microsoft