
CAnonymousPipe v1.02 An MFC
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 2005 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.0 (3 August 1998)
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.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.