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

Function WriteToNamedPipe

libipc/server.cpp:83–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83int WriteToNamedPipe(HANDLE hPipe, const wstring& str)
84{
85 DWORD cbWritten = 0;
86 auto fSuccess = WriteFile(
87 hPipe, // pipe handle
88 str.c_str(), // message
89 static_cast<DWORD>((str.length()+1)*sizeof(wchar_t)), // message length
90 &cbWritten, // bytes written
91 NULL); // not overlapped
92
93 if (!fSuccess)
94 return -1;
95
96 return cbWritten;
97}
98
99DWORD WINAPI NamedPipeServerThreadProc(PVOID lpvParam)
100{

Callers 1

~OutputHandlerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected