diff --git a/PipeServerSample.sln b/PipeServerSample.sln
new file mode 100644
index 0000000000000000000000000000000000000000..87d3ff39c2e13c2d690b7a824e991a6fc4a06f53
--- /dev/null
+++ b/PipeServerSample.sln
@@ -0,0 +1,31 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+VisualStudioVersion = 15.0.28307.757
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PipeServerSample", "PipeServerSample\PipeServerSample.vcxproj", "{B910345D-7C58-485B-A053-B887A14FA30F}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x64 = Debug|x64
+ Debug|x86 = Debug|x86
+ Release|x64 = Release|x64
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {B910345D-7C58-485B-A053-B887A14FA30F}.Debug|x64.ActiveCfg = Debug|x64
+ {B910345D-7C58-485B-A053-B887A14FA30F}.Debug|x64.Build.0 = Debug|x64
+ {B910345D-7C58-485B-A053-B887A14FA30F}.Debug|x86.ActiveCfg = Debug|Win32
+ {B910345D-7C58-485B-A053-B887A14FA30F}.Debug|x86.Build.0 = Debug|Win32
+ {B910345D-7C58-485B-A053-B887A14FA30F}.Release|x64.ActiveCfg = Release|x64
+ {B910345D-7C58-485B-A053-B887A14FA30F}.Release|x64.Build.0 = Release|x64
+ {B910345D-7C58-485B-A053-B887A14FA30F}.Release|x86.ActiveCfg = Release|Win32
+ {B910345D-7C58-485B-A053-B887A14FA30F}.Release|x86.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {AD495A2B-79BB-42B6-8A46-85C528BCD2A6}
+ EndGlobalSection
+EndGlobal
diff --git a/PipeServerSample/PipeClientSample.exe b/PipeServerSample/PipeClientSample.exe
new file mode 100644
index 0000000000000000000000000000000000000000..1d9997cec57148699904c162ab40564ffbcabbaa
Binary files /dev/null and b/PipeServerSample/PipeClientSample.exe differ
diff --git a/PipeServerSample/PipeServerSample.cpp b/PipeServerSample/PipeServerSample.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..a83d6504c0f045a14fba068dc6fce79908667598
--- /dev/null
+++ b/PipeServerSample/PipeServerSample.cpp
@@ -0,0 +1,106 @@
+
+// PipeServerSample.cpp: 定义应用程序的类行为。
+//
+
+#include "stdafx.h"
+#include "PipeServerSample.h"
+#include "PipeServerSampleDlg.h"
+
+#ifdef _DEBUG
+#define new DEBUG_NEW
+#endif
+
+
+// CPipeServerSampleApp
+
+BEGIN_MESSAGE_MAP(CPipeServerSampleApp, CWinApp)
+ ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
+END_MESSAGE_MAP()
+
+
+// CPipeServerSampleApp 构造
+
+CPipeServerSampleApp::CPipeServerSampleApp()
+{
+ // 支持重新启动管理器
+ m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART;
+
+ // TODO: 在此处添加构造代码,
+ // 将所有重要的初始化放置在 InitInstance 中
+}
+
+
+// 唯一的 CPipeServerSampleApp 对象
+
+CPipeServerSampleApp theApp;
+
+
+// CPipeServerSampleApp 初始化
+
+BOOL CPipeServerSampleApp::InitInstance()
+{
+ // 如果一个运行在 Windows XP 上的应用程序清单指定要
+ // 使用 ComCtl32.dll 版本 6 或更高版本来启用可视化方式,
+ //则需要 InitCommonControlsEx()。 否则,将无法创建窗口。
+ INITCOMMONCONTROLSEX InitCtrls;
+ InitCtrls.dwSize = sizeof(InitCtrls);
+ // 将它设置为包括所有要在应用程序中使用的
+ // 公共控件类。
+ InitCtrls.dwICC = ICC_WIN95_CLASSES;
+ InitCommonControlsEx(&InitCtrls);
+
+ CWinApp::InitInstance();
+
+
+ AfxEnableControlContainer();
+
+ // 创建 shell 管理器,以防对话框包含
+ // 任何 shell 树视图控件或 shell 列表视图控件。
+ CShellManager *pShellManager = new CShellManager;
+
+ // 激活“Windows Native”视觉管理器,以便在 MFC 控件中启用主题
+ CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerWindows));
+
+ // 标准初始化
+ // 如果未使用这些功能并希望减小
+ // 最终可执行文件的大小,则应移除下列
+ // 不需要的特定初始化例程
+ // 更改用于存储设置的注册表项
+ // TODO: 应适当修改该字符串,
+ // 例如修改为公司或组织名
+ SetRegistryKey(_T("应用程序向导生成的本地应用程序"));
+
+ CPipeServerSampleDlg dlg;
+ m_pMainWnd = &dlg;
+ INT_PTR nResponse = dlg.DoModal();
+ if (nResponse == IDOK)
+ {
+ // TODO: 在此放置处理何时用
+ // “确定”来关闭对话框的代码
+ }
+ else if (nResponse == IDCANCEL)
+ {
+ // TODO: 在此放置处理何时用
+ // “取消”来关闭对话框的代码
+ }
+ else if (nResponse == -1)
+ {
+ TRACE(traceAppMsg, 0, "警告: 对话框创建失败,应用程序将意外终止。\n");
+ TRACE(traceAppMsg, 0, "警告: 如果您在对话框上使用 MFC 控件,则无法 #define _AFX_NO_MFC_CONTROLS_IN_DIALOGS。\n");
+ }
+
+ // 删除上面创建的 shell 管理器。
+ if (pShellManager != nullptr)
+ {
+ delete pShellManager;
+ }
+
+#if !defined(_AFXDLL) && !defined(_AFX_NO_MFC_CONTROLS_IN_DIALOGS)
+ ControlBarCleanUp();
+#endif
+
+ // 由于对话框已关闭,所以将返回 FALSE 以便退出应用程序,
+ // 而不是启动应用程序的消息泵。
+ return FALSE;
+}
+
diff --git a/PipeServerSample/PipeServerSample.h b/PipeServerSample/PipeServerSample.h
new file mode 100644
index 0000000000000000000000000000000000000000..9057d6f3458bd2cab74cf6f3ce4a09760be84a6d
--- /dev/null
+++ b/PipeServerSample/PipeServerSample.h
@@ -0,0 +1,32 @@
+
+// PipeServerSample.h: PROJECT_NAME 应用程序的主头文件
+//
+
+#pragma once
+
+#ifndef __AFXWIN_H__
+ #error "在包含此文件之前包含“stdafx.h”以生成 PCH 文件"
+#endif
+
+#include "resource.h" // 主符号
+
+
+// CPipeServerSampleApp:
+// 有关此类的实现,请参阅 PipeServerSample.cpp
+//
+
+class CPipeServerSampleApp : public CWinApp
+{
+public:
+ CPipeServerSampleApp();
+
+// 重写
+public:
+ virtual BOOL InitInstance();
+
+// 实现
+
+ DECLARE_MESSAGE_MAP()
+};
+
+extern CPipeServerSampleApp theApp;
diff --git a/PipeServerSample/PipeServerSample.rc b/PipeServerSample/PipeServerSample.rc
new file mode 100644
index 0000000000000000000000000000000000000000..60784df765fdd1ec3d716bdb497aad77682b537e
Binary files /dev/null and b/PipeServerSample/PipeServerSample.rc differ
diff --git a/PipeServerSample/PipeServerSample.vcxproj b/PipeServerSample/PipeServerSample.vcxproj
new file mode 100644
index 0000000000000000000000000000000000000000..0e83712c77eeab92ac78f9f45fcb02e715fd7620
--- /dev/null
+++ b/PipeServerSample/PipeServerSample.vcxproj
@@ -0,0 +1,215 @@
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ x64
+
+
+
+ 15.0
+ {B910345D-7C58-485B-A053-B887A14FA30F}
+ MFCProj
+ PipeServerSample
+ 10.0.17763.0
+
+
+
+ Application
+ true
+ v141
+ MultiByte
+ Dynamic
+
+
+ Application
+ false
+ v141
+ true
+ Unicode
+ Dynamic
+
+
+ Application
+ true
+ v141
+ Unicode
+ Dynamic
+
+
+ Application
+ false
+ v141
+ true
+ Unicode
+ Dynamic
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+
+
+ true
+
+
+ false
+
+
+ false
+
+
+
+ Use
+ Level3
+ Disabled
+ true
+ WIN32;_WINDOWS;_DEBUG;%(PreprocessorDefinitions)
+
+
+ Windows
+
+
+ false
+ true
+ _DEBUG;%(PreprocessorDefinitions)
+
+
+ 0x0804
+ _DEBUG;%(PreprocessorDefinitions)
+ $(IntDir);%(AdditionalIncludeDirectories)
+
+
+
+
+ Use
+ Level3
+ Disabled
+ true
+ _WINDOWS;_DEBUG;%(PreprocessorDefinitions)
+
+
+ Windows
+
+
+ false
+ true
+ _DEBUG;%(PreprocessorDefinitions)
+
+
+ 0x0804
+ _DEBUG;%(PreprocessorDefinitions)
+ $(IntDir);%(AdditionalIncludeDirectories)
+
+
+
+
+ Use
+ Level3
+ MaxSpeed
+ true
+ true
+ true
+ WIN32;_WINDOWS;NDEBUG;%(PreprocessorDefinitions)
+
+
+ Windows
+ true
+ true
+
+
+ false
+ true
+ NDEBUG;%(PreprocessorDefinitions)
+
+
+ 0x0804
+ NDEBUG;%(PreprocessorDefinitions)
+ $(IntDir);%(AdditionalIncludeDirectories)
+
+
+
+
+ Use
+ Level3
+ MaxSpeed
+ true
+ true
+ true
+ _WINDOWS;NDEBUG;%(PreprocessorDefinitions)
+
+
+ Windows
+ true
+ true
+
+
+ false
+ true
+ NDEBUG;%(PreprocessorDefinitions)
+
+
+ 0x0804
+ NDEBUG;%(PreprocessorDefinitions)
+ $(IntDir);%(AdditionalIncludeDirectories)
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Create
+ Create
+ Create
+ Create
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/PipeServerSample/PipeServerSample.vcxproj.filters b/PipeServerSample/PipeServerSample.vcxproj.filters
new file mode 100644
index 0000000000000000000000000000000000000000..93e59d18cc99072ffbdcf302d7e287bdc2cd8422
--- /dev/null
+++ b/PipeServerSample/PipeServerSample.vcxproj.filters
@@ -0,0 +1,61 @@
+
+
+
+
+ {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
+ cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
+
+
+ {93995380-89BD-4b04-88EB-625FBE52EBFB}
+ h;hh;hpp;hxx;hm;inl;inc;ipp;xsd
+
+
+ {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
+ rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
+
+
+
+
+ 头文件
+
+
+ 头文件
+
+
+ 头文件
+
+
+ 头文件
+
+
+ 头文件
+
+
+
+
+ 源文件
+
+
+ 源文件
+
+
+ 源文件
+
+
+
+
+ 资源文件
+
+
+
+
+ 资源文件
+
+
+
+
+
+ 资源文件
+
+
+
\ No newline at end of file
diff --git a/PipeServerSample/PipeServerSampleDlg.cpp b/PipeServerSample/PipeServerSampleDlg.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..c82e85b029ac8f5c6f57e6c99c04f5b2ef9d8ae2
--- /dev/null
+++ b/PipeServerSample/PipeServerSampleDlg.cpp
@@ -0,0 +1,203 @@
+
+// PipeServerSampleDlg.cpp: 实现文件
+//
+
+#include "stdafx.h"
+#include "PipeServerSample.h"
+#include "PipeServerSampleDlg.h"
+#include "afxdialogex.h"
+
+#ifdef _DEBUG
+#define new DEBUG_NEW
+#endif
+
+
+// 用于应用程序“关于”菜单项的 CAboutDlg 对话框
+
+class CAboutDlg : public CDialogEx
+{
+public:
+ CAboutDlg();
+
+// 对话框数据
+#ifdef AFX_DESIGN_TIME
+ enum { IDD = IDD_ABOUTBOX };
+#endif
+
+ protected:
+ virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
+
+// 实现
+protected:
+ DECLARE_MESSAGE_MAP()
+};
+
+CAboutDlg::CAboutDlg() : CDialogEx(IDD_ABOUTBOX)
+{
+}
+
+void CAboutDlg::DoDataExchange(CDataExchange* pDX)
+{
+ CDialogEx::DoDataExchange(pDX);
+}
+
+BEGIN_MESSAGE_MAP(CAboutDlg, CDialogEx)
+END_MESSAGE_MAP()
+
+
+// CPipeServerSampleDlg 对话框
+
+
+
+CPipeServerSampleDlg::CPipeServerSampleDlg(CWnd* pParent /*=nullptr*/)
+ : CDialogEx(IDD_PIPESERVERSAMPLE_DIALOG, pParent)
+ , m_Log(_T(""))
+{
+ m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
+}
+
+void CPipeServerSampleDlg::DoDataExchange(CDataExchange* pDX)
+{
+ CDialogEx::DoDataExchange(pDX);
+ DDX_Text(pDX, IDC_EDIT_LOG, m_Log);
+}
+
+BEGIN_MESSAGE_MAP(CPipeServerSampleDlg, CDialogEx)
+ ON_WM_SYSCOMMAND()
+ ON_WM_PAINT()
+ ON_WM_QUERYDRAGICON()
+ ON_BN_CLICKED(IDC_BUTTON_CONNECT, &CPipeServerSampleDlg::OnButtonConnect)
+END_MESSAGE_MAP()
+
+
+// CPipeServerSampleDlg 消息处理程序
+
+BOOL CPipeServerSampleDlg::OnInitDialog()
+{
+ CDialogEx::OnInitDialog();
+
+ // 将“关于...”菜单项添加到系统菜单中。
+
+ // IDM_ABOUTBOX 必须在系统命令范围内。
+ ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
+ ASSERT(IDM_ABOUTBOX < 0xF000);
+
+ CMenu* pSysMenu = GetSystemMenu(FALSE);
+ if (pSysMenu != nullptr)
+ {
+ BOOL bNameValid;
+ CString strAboutMenu;
+ bNameValid = strAboutMenu.LoadString(IDS_ABOUTBOX);
+ ASSERT(bNameValid);
+ if (!strAboutMenu.IsEmpty())
+ {
+ pSysMenu->AppendMenu(MF_SEPARATOR);
+ pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
+ }
+ }
+
+ // 设置此对话框的图标。 当应用程序主窗口不是对话框时,框架将自动
+ // 执行此操作
+ SetIcon(m_hIcon, TRUE); // 设置大图标
+ SetIcon(m_hIcon, FALSE); // 设置小图标
+
+ // TODO: 在此添加额外的初始化代码
+
+ return TRUE; // 除非将焦点设置到控件,否则返回 TRUE
+}
+
+void CPipeServerSampleDlg::OnSysCommand(UINT nID, LPARAM lParam)
+{
+ if ((nID & 0xFFF0) == IDM_ABOUTBOX)
+ {
+ CAboutDlg dlgAbout;
+ dlgAbout.DoModal();
+ }
+ else
+ {
+ CDialogEx::OnSysCommand(nID, lParam);
+ }
+}
+
+// 如果向对话框添加最小化按钮,则需要下面的代码
+// 来绘制该图标。 对于使用文档/视图模型的 MFC 应用程序,
+// 这将由框架自动完成。
+
+void CPipeServerSampleDlg::OnPaint()
+{
+ if (IsIconic())
+ {
+ CPaintDC dc(this); // 用于绘制的设备上下文
+
+ SendMessage(WM_ICONERASEBKGND, reinterpret_cast(dc.GetSafeHdc()), 0);
+
+ // 使图标在工作区矩形中居中
+ int cxIcon = GetSystemMetrics(SM_CXICON);
+ int cyIcon = GetSystemMetrics(SM_CYICON);
+ CRect rect;
+ GetClientRect(&rect);
+ int x = (rect.Width() - cxIcon + 1) / 2;
+ int y = (rect.Height() - cyIcon + 1) / 2;
+
+ // 绘制图标
+ dc.DrawIcon(x, y, m_hIcon);
+ }
+ else
+ {
+ CDialogEx::OnPaint();
+ }
+}
+
+//当用户拖动最小化窗口时系统调用此函数取得光标
+//显示。
+HCURSOR CPipeServerSampleDlg::OnQueryDragIcon()
+{
+ return static_cast(m_hIcon);
+}
+
+
+
+void CPipeServerSampleDlg::OnButtonConnect()
+{
+ // TODO: 在此添加控件通知处理程序代码
+ SECURITY_ATTRIBUTES sa;
+ HANDLE hRead, hWrite;
+ sa.nLength = sizeof(SECURITY_ATTRIBUTES);
+ sa.lpSecurityDescriptor = NULL;
+ sa.bInheritHandle = TRUE;
+
+ if (!CreatePipe(&hRead, &hWrite, &sa, 0))
+ {
+ m_Log = "调用 CreatePipe 函数创建匿名管道失败!";
+ UpdateData(FALSE);
+ return;
+ }
+
+ STARTUPINFO si; // 定义启动结构
+ PROCESS_INFORMATION pi; // 定义进程信息结构
+ si.cb = sizeof(STARTUPINFO);
+ GetStartupInfo(&si); // 获取启动信息
+ si.hStdError = hWrite;
+ si.hStdOutput = hWrite;
+ si.wShowWindow = SW_HIDE;
+ si.dwFlags = STARTF_USESHOWWINDOW | STARTF_USESTDHANDLES;
+
+ if (!CreateProcess(NULL, "PipeClientSample", NULL, NULL, TRUE, NULL, NULL, NULL, &si, &pi))
+ {
+ m_Log = "调用 CreateProcess 创建进程失败";
+ UpdateData(FALSE);
+ return;
+ }
+ CloseHandle(hWrite);
+
+ char buffer[4096] = { 0 };
+ DWORD dwByteReads;
+ while (true)
+ {
+ if (ReadFile(hRead, buffer, 4095, &dwByteReads, NULL) == NULL)
+ break;
+ m_Log += buffer;
+ UpdateData(FALSE);
+ Sleep(1000);
+ }
+}
diff --git a/PipeServerSample/PipeServerSampleDlg.h b/PipeServerSample/PipeServerSampleDlg.h
new file mode 100644
index 0000000000000000000000000000000000000000..fc9892b88967d17cef3c42740b0ad30c3ac2548a
--- /dev/null
+++ b/PipeServerSample/PipeServerSampleDlg.h
@@ -0,0 +1,38 @@
+
+// PipeServerSampleDlg.h: 头文件
+//
+
+#pragma once
+
+
+// CPipeServerSampleDlg 对话框
+class CPipeServerSampleDlg : public CDialogEx
+{
+// 构造
+public:
+ CPipeServerSampleDlg(CWnd* pParent = nullptr); // 标准构造函数
+
+// 对话框数据
+#ifdef AFX_DESIGN_TIME
+ enum { IDD = IDD_PIPESERVERSAMPLE_DIALOG };
+#endif
+
+ protected:
+ virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
+
+
+// 实现
+protected:
+ HICON m_hIcon;
+
+ // 生成的消息映射函数
+ virtual BOOL OnInitDialog();
+ afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
+ afx_msg void OnPaint();
+ afx_msg HCURSOR OnQueryDragIcon();
+ DECLARE_MESSAGE_MAP()
+public:
+ // 状态输出框
+ CString m_Log;
+ afx_msg void OnButtonConnect();
+};
diff --git a/PipeServerSample/ReadMe.md b/PipeServerSample/ReadMe.md
new file mode 100644
index 0000000000000000000000000000000000000000..db11d5dbeb8bb9aef9c8a85cf333945b90778a38
--- /dev/null
+++ b/PipeServerSample/ReadMe.md
@@ -0,0 +1 @@
+#### ʾܵļʹ
\ No newline at end of file
diff --git a/PipeServerSample/res/PipeServerSample.ico b/PipeServerSample/res/PipeServerSample.ico
new file mode 100644
index 0000000000000000000000000000000000000000..d56fbcdfdf6eac0f4727c34770c26689271d96af
Binary files /dev/null and b/PipeServerSample/res/PipeServerSample.ico differ
diff --git a/PipeServerSample/res/PipeServerSample.rc2 b/PipeServerSample/res/PipeServerSample.rc2
new file mode 100644
index 0000000000000000000000000000000000000000..eb8473ae899eac308ea820c708d064f3104a18d2
Binary files /dev/null and b/PipeServerSample/res/PipeServerSample.rc2 differ
diff --git a/PipeServerSample/resource.h b/PipeServerSample/resource.h
new file mode 100644
index 0000000000000000000000000000000000000000..9a1eae6b22135527cf15d87a36e17d5998054599
--- /dev/null
+++ b/PipeServerSample/resource.h
@@ -0,0 +1,23 @@
+//{{NO_DEPENDENCIES}}
+// Microsoft Visual C++ 生成的包含文件。
+// 供 PipeServerSample.rc 使用
+//
+#define IDM_ABOUTBOX 0x0010
+#define IDD_ABOUTBOX 100
+#define IDS_ABOUTBOX 101
+#define IDD_PIPESERVERSAMPLE_DIALOG 102
+#define IDR_MAINFRAME 128
+#define IDC_EDIT_LOG 1000
+#define IDC_BUTTON1 1001
+#define IDC_BUTTON_CONNECT 1001
+
+// Next default values for new objects
+//
+#ifdef APSTUDIO_INVOKED
+#ifndef APSTUDIO_READONLY_SYMBOLS
+#define _APS_NEXT_RESOURCE_VALUE 130
+#define _APS_NEXT_COMMAND_VALUE 32771
+#define _APS_NEXT_CONTROL_VALUE 1002
+#define _APS_NEXT_SYMED_VALUE 101
+#endif
+#endif
diff --git a/PipeServerSample/stdafx.cpp b/PipeServerSample/stdafx.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..5737c9ba38e4aab3e990cadd996ee860ab78c7ef
--- /dev/null
+++ b/PipeServerSample/stdafx.cpp
@@ -0,0 +1,8 @@
+
+// stdafx.cpp : 只包括标准包含文件的源文件
+// PipeServerSample.pch 将作为预编译标头
+// stdafx.obj 将包含预编译类型信息
+
+#include "stdafx.h"
+
+
diff --git a/PipeServerSample/stdafx.h b/PipeServerSample/stdafx.h
new file mode 100644
index 0000000000000000000000000000000000000000..d76af35be23f724710bf2d09e25da9ccf96aa7d6
--- /dev/null
+++ b/PipeServerSample/stdafx.h
@@ -0,0 +1,54 @@
+
+// stdafx.h : 标准系统包含文件的包含文件,
+// 或是经常使用但不常更改的
+// 特定于项目的包含文件
+
+#pragma once
+
+#ifndef VC_EXTRALEAN
+#define VC_EXTRALEAN // 从 Windows 头中排除极少使用的资料
+#endif
+
+#include "targetver.h"
+
+#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // 某些 CString 构造函数将是显式的
+
+// 关闭 MFC 对某些常见但经常可放心忽略的警告消息的隐藏
+#define _AFX_ALL_WARNINGS
+
+#include // MFC 核心组件和标准组件
+#include // MFC 扩展
+
+
+#include // MFC 自动化类
+
+
+
+#ifndef _AFX_NO_OLE_SUPPORT
+#include // MFC 对 Internet Explorer 4 公共控件的支持
+#endif
+#ifndef _AFX_NO_AFXCMN_SUPPORT
+#include // MFC 对 Windows 公共控件的支持
+#endif // _AFX_NO_AFXCMN_SUPPORT
+
+#include // 功能区和控件条的 MFC 支持
+
+
+
+
+
+
+
+
+
+#ifdef _UNICODE
+#if defined _M_IX86
+#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
+#elif defined _M_X64
+#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
+#else
+#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
+#endif
+#endif
+
+
diff --git a/PipeServerSample/targetver.h b/PipeServerSample/targetver.h
new file mode 100644
index 0000000000000000000000000000000000000000..91042b9ea6cf1ec40649e57d65503e1b403a037c
--- /dev/null
+++ b/PipeServerSample/targetver.h
@@ -0,0 +1,8 @@
+#pragma once
+
+// 包括 SDKDDKVer.h 将定义可用的最高版本的 Windows 平台。
+
+// 如果要为以前的 Windows 平台生成应用程序,请包括 WinSDKVer.h,并将
+// 将 _WIN32_WINNT 宏设置为要支持的平台,然后再包括 SDKDDKVer.h。
+
+#include