| 533 | } |
| 534 | |
| 535 | void |
| 536 | ConsoleErrMesPipe(LPCWSTR err, HANDLE hPipe) |
| 537 | { |
| 538 | // Send a message to the pipe client. |
| 539 | |
| 540 | wstring mes = wstring(L"cppcryptfs: ") + err; |
| 541 | |
| 542 | auto cbToWrite = (mes.length() + 1) * sizeof(WCHAR); |
| 543 | |
| 544 | DWORD cbWritten = 0; |
| 545 | BOOL fSuccess = WriteFile( |
| 546 | hPipe, // pipe handle |
| 547 | mes.c_str(), // message |
| 548 | static_cast<DWORD>(cbToWrite), // message length |
| 549 | &cbWritten, // bytes written |
| 550 | NULL); // not overlapped |
| 551 | |
| 552 | CloseHandle(hPipe); |
| 553 | } |
| 554 | |
| 555 | bool touppercase(LPCWSTR in, wstring& out) |
| 556 | { |
no outgoing calls
no test coverage detected