Naughter Software Logo

CServerMailslot & CClientMailslot v1.18 C++ wrapper classes for Win32 Mailslots

These 2 classes provides a clean C++ interface to the Win32 IPC mechanism called mailslots. They are very similar to the more common "Named pipe" IPC mechanism. Unlike named pipes, mailslots use datagrams. A datagram is a small packet of information that the network sends along the wire. Like a radio or television broadcast, a datagram offers no confirmation of receipt; there is no way to guarantee that a datagram has been received.

Mailslots can broadcast messages within a domain. If several processes in a domain each create a mailslot using the same name, every message that is addressed to that mailslot and sent to the domain is received by the participating processes. Because one process can control both a server and client mailslot handle, applications can easily implement a simple message-passing facility within a domain.


The enclosed zip file contains the source code for the 2 classes and also includes a VC 2005 solution to build a demonstration program called WinNotify. It is based on the old MS WinPopup utility as shown below:

WinNotify screen capture





V1.1 (26 July 1998)

V1.11 (10 August 1998)

11 August 1998

V1.11 (26 July 2003)

V1.12 (22 December 2006)

V1.13 (23 December 2006)

V1.14 (8 September 2007)

V1.15 (7 September 2008)

V1.16 (10 May 2015)

V1.17 (16 January 2016)

v1.18 (30 April 2017)