| 2 | #include "FastCopyCommandParser.h" |
| 3 | |
| 4 | AnonymousPipe::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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected