MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / CreateDBWinBufferMapping

Function CreateDBWinBufferMapping

DebugView++Lib/DBWinReader.cpp:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26Win32::Handle CreateDBWinBufferMapping(bool global)
27{
28 Win32::Handle hMap(CreateFileMapping(nullptr, nullptr, PAGE_READWRITE, 0, sizeof(DbWinBuffer), GetDBWinName(global, L"DBWIN_BUFFER").c_str()));
29 if (GetLastError() == ERROR_ALREADY_EXISTS)
30 throw std::runtime_error("CreateDBWinBufferMapping");
31 return hMap;
32}
33
34DBWinReader::DBWinReader(Timer& timer, ILineBuffer& linebuffer, bool global) :
35 LogSource(timer, SourceType::System, linebuffer),

Callers 1

DBWinReaderMethod · 0.85

Calls 3

CreateFileMappingFunction · 0.85
GetDBWinNameFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected