MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / ConsoleErrMesPipe

Function ConsoleErrMesPipe

libcppcryptfs/util/util.cpp:535–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533}
534
535void
536ConsoleErrMesPipe(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
555bool touppercase(LPCWSTR in, wstring& out)
556{

Callers 2

SendCmdArgsToSelfMethod · 0.85
OnCopyDataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected