libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
PORT_MESSAGE.hh
Go to the documentation of this file.
1/*
2 * Copyright 2021 Assured Information Security, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#pragma once
17
19#include <introvirt/util/json/json.hh>
21
22#include <cstdint>
23#include <memory>
24
25namespace introvirt {
26namespace windows {
27namespace nt {
28
30 public:
34 virtual int16_t DataLength() const = 0;
35
39 virtual int16_t TotalLength() const = 0;
40
41 virtual LPC_TYPE MessageType() const = 0;
42
43 virtual int16_t DataInfoOffset() const = 0;
44
45 virtual const CLIENT_ID& ClientId() const = 0;
46
47 virtual uint32_t MessageId() const = 0;
48
49 virtual uint32_t CallbackId() const = 0;
50
51 virtual guest_ptr<void> ptr() const = 0;
52
53 // The size of the LPC_MESSAGE header
54 virtual uint64_t HeaderSize() const = 0;
55
56 virtual void write(std::ostream& os, const std::string& linePrefix = "") const = 0;
57
58 virtual Json::Value json() const = 0;
59
60 static std::unique_ptr<PORT_MESSAGE> make_unique(const NtKernel& kernel,
61 const guest_ptr<void>& ptr);
62
63 virtual ~PORT_MESSAGE() = default;
64};
65
66} /* namespace nt */
67} /* namespace windows */
68} /* namespace introvirt */
Definition guest_ptr.hh:88
Class for handling the Windows NT CLIENT_ID structure.
Definition CLIENT_ID.hh:37
Abstraction for the Windows NT kernel.
Definition NtKernel.hh:37
Definition PORT_MESSAGE.hh:29
static std::unique_ptr< PORT_MESSAGE > make_unique(const NtKernel &kernel, const guest_ptr< void > &ptr)
virtual uint32_t MessageId() const =0
virtual void write(std::ostream &os, const std::string &linePrefix="") const =0
virtual int16_t DataLength() const =0
virtual int16_t TotalLength() const =0
virtual LPC_TYPE MessageType() const =0
virtual uint32_t CallbackId() const =0
virtual Json::Value json() const =0
virtual const CLIENT_ID & ClientId() const =0
virtual uint64_t HeaderSize() const =0
virtual int16_t DataInfoOffset() const =0
virtual guest_ptr< void > ptr() const =0
Type-safe guest virtual address pointer and guest_ptr template.
LPC_TYPE
Definition LPC_TYPE.hh:24
Core IntroVirt classes.
Definition Cr0.hh:20