CAnonymousPipe v1.08 A C++ class to encapsulate
Anonymous Pipes
The class encapsulates the Anonymous Pipe IPC method as provided in Win32.
The class provides a thin veneer over the SDK API meaning that all the richness
the SDK provides is available through the class. The class also provides auto cleanup
and is UNICODE enabled with build configurations provided.
The enclosed zip file contains the CAnonymousPipe
source code and also includes a simple VC 2017 solution to compile and exercise
the class.
Copyright
- You are allowed to include the source code in any product (commercial, shareware,
freeware or otherwise) when your product is released in binary form.
- You are allowed to modify the source code in any way you want except you
cannot modify the copyright details at the top of each module.
- If you want to distribute source code with your application, then you are
only allowed to distribute versions released by the author. This is to maintain
a single distribution point for the source code.
Updates
v1.08 (9 April 2022)
- Updated copyright details.
- Updated the code to use C++ uniform initialization for all variable
declarations
v1.07 (3 May 2020)
- Updated copyright details.
- Fixed more Clang-Tidy static code analysis warnings in the code.
v1.06 (2 June 2019)
- Updated copyright details.
- Updated the code to clean compile on VC 2019
v1.05 (25 September 2018)
- Updated copyright details.
- Fixed a number of C++ core guidelines compiler warnings. These changes
mean that the code will now only compile on VC 2017 or later.
1 May 2017
- Updated the demo app to compile cleanly using /permissive-.
v1.04 (16 January 2016)
- Updated copyright details.
- Verified the code compiles cleanly in VC 2015
v1.03 (9 April 2015)
- Updated copyright details.
- Updated sample project settings to more modern default values
- Removed all TRACE calls from the class.
- Updated the code to clean compile on VC 2010 and later
- Added SAL annotations to all the code
- Reworked the class to make it a header only implementation.
- Updated the code to compile without taking a dependency on MFC
v1.02 (2 September 2008)
- Updated copyright details
- Code now compiles cleanly using Code Analysis (/analyze)
- Updated code to compile correctly using _ATL_CSTRING_EXPLICIT_CONSTRUCTORS
define
- Updated sample app to clean compile on VC 2008
- The code has now been updated to support VC 2005 or later only.
- Reworked some of the Peek parameters to be pointers rather than references.
V1.01 (29 December 2006)
- Updated copyright details
- Optimized CAnonymousPipe constructor code
- Addition of a CANONYMOUSPIPE_EXT_CLASS preprocessor macro to allow the classes
to be more easily added to an extension dll
- Remove derivation from CObject as it was not really required
- Updated the documentation to use the same style as the web site.
- Addition of a GetWriteHandle and GetReadHandle methods to provide access
to the low level handles which the class encapsulates.
- Updated the code to clean compile on VC 2005
v1.0 (3 August 1998)