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

Method DBWinReader

DebugView++Lib/DBWinReader.cpp:34–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34DBWinReader::DBWinReader(Timer& timer, ILineBuffer& linebuffer, bool global) :
35 LogSource(timer, SourceType::System, linebuffer),
36 m_hBuffer(CreateDBWinBufferMapping(global)),
37 m_dbWinBufferReady(Win32::CreateEvent(nullptr, false, true, GetDBWinName(global, L"DBWIN_BUFFER_READY").c_str())),
38 m_dbWinDataReady(Win32::CreateEvent(nullptr, false, false, GetDBWinName(global, L"DBWIN_DATA_READY").c_str())),
39 m_mappedViewOfFile(m_hBuffer.get(), PAGE_READONLY, 0, 0, sizeof(DbWinBuffer)),
40 m_dbWinBuffer(static_cast<const DbWinBuffer*>(m_mappedViewOfFile.Ptr()))
41{
42 SetDescription(global ? L"Global Win32 Messages" : L"Win32 Messages");
43 Win32::SetEvent(m_dbWinBufferReady);
44}
45
46HANDLE DBWinReader::GetHandle() const
47{

Callers

nothing calls this directly

Calls 6

CreateDBWinBufferMappingFunction · 0.85
CreateEventFunction · 0.85
GetDBWinNameFunction · 0.85
SetEventFunction · 0.85
c_strMethod · 0.45
PtrMethod · 0.45

Tested by

no test coverage detected