| 184 | |
| 185 | #if !defined(WINAPI_FAMILY) || WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) |
| 186 | void makePipe(JNIEnv* e, HANDLE p[2]) |
| 187 | { |
| 188 | SECURITY_ATTRIBUTES sa; |
| 189 | sa.nLength = sizeof(sa); |
| 190 | sa.bInheritHandle = 1; |
| 191 | sa.lpSecurityDescriptor = 0; |
| 192 | |
| 193 | BOOL success = CreatePipe(p, p + 1, &sa, 0); |
| 194 | if (not success) { |
| 195 | throwNew(e, "java/io/IOException", getErrorStr(GetLastError())); |
| 196 | } |
| 197 | } |
| 198 | #endif |
| 199 | |
| 200 | int descriptor(JNIEnv* e, HANDLE h) |
no test coverage detected