forked from CobaltFusion/DebugViewPP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKernelReader.h
More file actions
45 lines (32 loc) · 968 Bytes
/
Copy pathKernelReader.h
File metadata and controls
45 lines (32 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// (C) Copyright Gert-Jan de Vos and Jan Wilmans 2013.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include "PipeReader.h"
#include "PolledLogSource.h"
#include "Win32/Win32Lib.h"
#include "Debugview_kernel_client.h"
namespace fusion {
namespace debugviewpp {
std::string GetDebugviewDriverLocation();
class ILineBuffer;
class KernelReader : public PolledLogSource
{
public:
KernelReader(Timer& timer, ILineBuffer& linebuffer);
~KernelReader() override;
void Abort() override;
bool AtEnd() const override;
void SetVerbose(bool value);
void SetPassThrough(bool value);
private:
void Poll() override;
void StartListening();
void StopListening();
void SetKernelMessagesDriverFeature(DWORD);
Win32::Handle m_handle;
PLOG_ITEM m_pBuf;
};
} // namespace debugviewpp
} // namespace fusion