| 1305 | } |
| 1306 | |
| 1307 | static bool CreatePipeWithSecurityAttributes(HANDLE& hReadPipe, HANDLE& hWritePipe, SECURITY_ATTRIBUTES* lpPipeAttributes, int32 nSize) |
| 1308 | { |
| 1309 | hReadPipe = 0; |
| 1310 | hWritePipe = 0; |
| 1311 | bool ret = ::CreatePipe(&hReadPipe, &hWritePipe, lpPipeAttributes, nSize); |
| 1312 | if (!ret || (hReadPipe == INVALID_HANDLE_VALUE) || (hWritePipe == INVALID_HANDLE_VALUE)) |
| 1313 | return false; |
| 1314 | return true; |
| 1315 | } |
| 1316 | |
| 1317 | static bool CreatePipe(HANDLE& parentHandle, HANDLE& childHandle, bool parentInputs) |
| 1318 | { |
no test coverage detected