MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / AnonymousPipe

Method AnonymousPipe

FastCopy/FastCopyCommandParser.cpp:4–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "FastCopyCommandParser.h"
3
4AnonymousPipe::AnonymousPipe()
5{
6 SECURITY_ATTRIBUTES saAttr;
7 // Set the bInheritHandle flag so pipe handles are inherited.
8
9 saAttr.nLength = sizeof(SECURITY_ATTRIBUTES);
10 saAttr.bInheritHandle = TRUE;
11 saAttr.lpSecurityDescriptor = NULL;
12
13 auto success = CreatePipe(&m_readPipe, &m_writePipe, &saAttr, 0);
14 assert(success);
15
16 success = SetHandleInformation(m_readPipe, HANDLE_FLAG_INHERIT, 0);
17 assert(success);
18
19}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected