mirror of
https://github.com/Cc28256/CcRemote.git
synced 2025-06-08 05:19:50 +00:00
readme
This commit is contained in:
parent
d8c29f12ee
commit
ce2bbd9dfb
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -26,7 +26,12 @@ CShellManager::CShellManager(CClientSocket *pClient):CManager(pClient)
|
|||||||
|
|
||||||
|
|
||||||
//创建管道,管道用于获取cmd的数据信息
|
//创建管道,管道用于获取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_hReadPipeHandle != NULL) CloseHandle(m_hReadPipeHandle);
|
||||||
if(m_hWritePipeShell != NULL) CloseHandle(m_hWritePipeShell);
|
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 |
Before Width: | Height: | Size: 230 KiB After Width: | Height: | Size: 230 KiB |
Loading…
x
Reference in New Issue
Block a user