The DosDeleteMailslot API deletes a mailslot. This discards all messages, including any that have not been read.
Mailslots enable applications to create and store messages while a program is running. Generally, these mailslots are deleted as the last step in running a program.
Restrictions
#include <netcons.h> #include <mailslot.h> DosDeleteMailslot(mailslothandle); /* 16 bit */ Dos32DeleteMailslot(mailslothandle); /* 32 bit */Parameters
mailslothandle
The following table lists the return codes most significant to this API.
(See API Return Codes for a complete
list of return codes.) ┌─────────────────────────────┬──────────┬─────────────────────────────────────┐│SYMBOLICCONSTANT
│VALUE │MEANING │
├─────────────────────────────┼──────────┼─────────────────────────────────────┤
│ NERR_Success │ 0 │ No errors were encountered. │
├─────────────────────────────┼──────────┼─────────────────────────────────────┤
│ ERROR_INVALID_HANDLE │ 6 │ The specified handle is not valid.
│
└─────────────────────────────┴──────────┴─────────────────────────────────────┘
For information about: