libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
TEB.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
18#include <introvirt/core/fwd.hh>
22
23#include <cstdint>
24#include <memory>
25
26namespace introvirt {
27namespace windows {
28namespace nt {
29
33class TEB {
34 public:
35 virtual const NT_TIB& NtTib() const = 0;
36 virtual const CLIENT_ID& ClientId() const = 0;
37
38 virtual NTSTATUS LastStatusValue() const = 0;
39 virtual void LastStatusValue(NTSTATUS value) = 0;
40
41 virtual WinError LastErrorValue() const = 0;
43
44 virtual guest_ptr<void> ptr() const = 0;
45};
46
47} // namespace nt
48} // namespace windows
49} // namespace introvirt
Definition guest_ptr.hh:88
Class for handling the Windows NT CLIENT_ID structure.
Definition CLIENT_ID.hh:37
Status codes returned by Windows NT system calls.
Definition NTSTATUS.hh:34
Definition NT_TIB.hh:31
Definition TEB.hh:33
virtual const CLIENT_ID & ClientId() const =0
virtual const NT_TIB & NtTib() const =0
virtual WinError LastErrorValue() const =0
virtual void LastErrorValue(WinError LastErrorValue)=0
virtual NTSTATUS LastStatusValue() const =0
virtual guest_ptr< void > ptr() const =0
virtual void LastStatusValue(NTSTATUS value)=0
WinError
Error codes defined in winerror.h.
Definition WinError.hh:26
Core IntroVirt classes.
Definition Cr0.hh:20