libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
NtAdjustPrivilegesToken.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
17/* This file is automatically generated. Do not edit. */
18#pragma once
19
20#include "NtSystemCall.hh"
22
23#include <memory>
24
25namespace introvirt {
26namespace windows {
27namespace nt {
28
33 public:
34 /* Direct parameter getters */
35
41 virtual uint64_t TokenHandle() const = 0;
47 virtual bool DisableAllPrivileges() const = 0;
59 virtual uint32_t PreviousPrivilegesLength() const = 0;
72
73 /* Direct parameter setters */
74
80 virtual void TokenHandle(uint64_t TokenHandle) = 0;
92 virtual void TokenPrivilegesPtr(const guest_ptr<void>& pTokenPrivileges) = 0;
104 virtual void PreviousPrivilegesPtr(const guest_ptr<void>& pPreviousPrivileges) = 0;
110 virtual void RequiredLengthPtr(const guest_ptr<void>& pRequiredLength) = 0;
111
112 /* Helper methods */
113 virtual const TOKEN_PRIVILEGES* TokenPrivileges() const = 0;
115 virtual const TOKEN_PRIVILEGES* PreviousPrivileges() const = 0;
117 virtual uint32_t RequiredLength() const = 0;
118 virtual void RequiredLength(uint32_t RequiredLength) = 0;
119};
120
121} /* namespace nt */
122} /* namespace windows */
123} /* namespace introvirt */
Definition guest_ptr.hh:88
Handler class for the NtAdjustPrivilegesToken system call.
Definition NtAdjustPrivilegesToken.hh:32
virtual void TokenHandle(uint64_t TokenHandle)=0
Setter for TokenHandle.
virtual guest_ptr< void > TokenPrivilegesPtr() const =0
Getter for TokenPrivilegesPtr.
virtual void DisableAllPrivileges(bool DisableAllPrivileges)=0
Setter for DisableAllPrivileges.
virtual uint32_t PreviousPrivilegesLength() const =0
Getter for PreviousPrivilegesLength.
virtual guest_ptr< void > RequiredLengthPtr() const =0
Getter for RequiredLengthPtr.
virtual TOKEN_PRIVILEGES * PreviousPrivileges()=0
virtual guest_ptr< void > PreviousPrivilegesPtr() const =0
Getter for PreviousPrivilegesPtr.
virtual bool DisableAllPrivileges() const =0
Getter for DisableAllPrivileges.
virtual const TOKEN_PRIVILEGES * PreviousPrivileges() const =0
virtual void PreviousPrivilegesPtr(const guest_ptr< void > &pPreviousPrivileges)=0
Setter for PreviousPrivilegesPtr.
virtual void TokenPrivilegesPtr(const guest_ptr< void > &pTokenPrivileges)=0
Setter for TokenPrivilegesPtr.
virtual TOKEN_PRIVILEGES * TokenPrivileges()=0
virtual uint32_t RequiredLength() const =0
virtual const TOKEN_PRIVILEGES * TokenPrivileges() const =0
virtual void RequiredLengthPtr(const guest_ptr< void > &pRequiredLength)=0
Setter for RequiredLengthPtr.
virtual uint64_t TokenHandle() const =0
Getter for TokenHandle.
virtual void RequiredLength(uint32_t RequiredLength)=0
virtual void PreviousPrivilegesLength(uint32_t PreviousPrivilegesLength)=0
Setter for PreviousPrivilegesLength.
Base type for NT system calls.
Definition NtSystemCall.hh:29
Definition TOKEN_PRIVILEGES.hh:34
Core IntroVirt classes.
Definition Cr0.hh:20