3.2.4.3 Application Closes a Mailslot

The application provides the following data:

  • The name of the mailslot to close, in the format specified in section 3.2.1.

The server MUST search MailslotList (section 3.2.1.1) for a mailslot whose Mailslot.Name field (section 3.2.1.2) matches the application-supplied name.

  • If the server does not find a match, it MUST return an implementation-specific error to the caller.

  • If the server finds a match, it MUST perform the following steps:

    • Delete all messages from Mailslot.MessageQueue (section 3.2.1.2).

    • Remove the mailslot from MailslotList.

    • Delete the mailslot.