libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
introvirt::windows::nt::NtQueryInformationToken Class Referenceabstract

Handler class for the NtQueryInformationToken system call. More...

#include <NtQueryInformationToken.hh>

Inheritance diagram for introvirt::windows::nt::NtQueryInformationToken:
Collaboration diagram for introvirt::windows::nt::NtQueryInformationToken:

Public Member Functions

virtual uint64_t TokenHandle () const =0
 Getter for TokenHandle.
 
virtual TOKEN_INFORMATION_CLASS TokenInformationClass () const =0
 Getter for TokenInformationClass.
 
virtual guest_ptr< void > TokenInformationPtr () const =0
 Getter for TokenInformationPtr.
 
virtual uint32_t TokenInformationLength () const =0
 Getter for TokenInformationLength.
 
virtual guest_ptr< void > ResultLengthPtr () const =0
 Getter for ResultLengthPtr.
 
virtual void TokenHandle (uint64_t TokenHandle)=0
 Setter for TokenHandle.
 
virtual void TokenInformationClass (TOKEN_INFORMATION_CLASS TokenInformationClass)=0
 Setter for TokenInformationClass.
 
virtual void TokenInformationPtr (const guest_ptr< void > &pTokenInformation)=0
 Setter for TokenInformationPtr.
 
virtual void TokenInformationLength (uint32_t TokenInformationLength)=0
 Setter for TokenInformationLength.
 
virtual void ResultLengthPtr (const guest_ptr< void > &pResultLength)=0
 Setter for ResultLengthPtr.
 
virtual const TOKEN_INFORMATIONTokenInformation () const =0
 
virtual TOKEN_INFORMATIONTokenInformation ()=0
 
virtual uint32_t ResultLength () const =0
 
virtual void ResultLength (uint32_t ResultLength)=0
 
- Public Member Functions inherited from introvirt::windows::nt::NtSystemCall
virtual NTSTATUS result () const =0
 Get the result code.
 
virtual void result (NTSTATUS_CODE code)=0
 Set the result code.
 
- Public Member Functions inherited from introvirt::windows::WindowsSystemCall
virtual SystemCallIndex index () const =0
 Get the system call number.
 
- Public Member Functions inherited from introvirt::SystemCall
virtual const std::string & name () const =0
 Get the name of the system call.
 
virtual void write (std::ostream &os=std::cout) const =0
 Write a human-readable description of this system call.
 
virtual Json::Value json () const =0
 
virtual bool will_return () const =0
 
virtual void data (const std::string &key, const std::shared_ptr< void > &value)=0
 Store arbitrary data with the SystemCall.
 
virtual void data (const std::string &key, std::shared_ptr< void > &&value)=0
 Store arbitrary data with the SystemCall.
 
virtual std::shared_ptr< void > data (const std::string &key)=0
 Retrieve arbitrary data stored with the SystemCall.
 
virtual std::shared_ptr< const void > data (const std::string &key) const =0
 Retrieve arbitrary data stored with the SystemCall.
 
virtual bool supported () const =0
 Check if this system call is supported by a more specific handler.
 
virtual void handle_return_event (Event &event)=0
 Handle a system call return event.
 
virtual ~SystemCall ()=default
 Destroy the instance.
 

Static Public Member Functions

static NTSTATUS inject (uint64_t TokenHandle, TOKEN_INFORMATION_CLASS TokenInformationClass, const guest_ptr< void > &pTokenInformation, uint32_t TokenInformationLength, uint32_t &ResultLength)
 

Detailed Description

Handler class for the NtQueryInformationToken system call.

Member Function Documentation

◆ inject()

static NTSTATUS introvirt::windows::nt::NtQueryInformationToken::inject ( uint64_t  TokenHandle,
TOKEN_INFORMATION_CLASS  TokenInformationClass,
const guest_ptr< void > &  pTokenInformation,
uint32_t  TokenInformationLength,
uint32_t &  ResultLength 
)
static

◆ ResultLength() [1/2]

virtual uint32_t introvirt::windows::nt::NtQueryInformationToken::ResultLength ( ) const
pure virtual

◆ ResultLength() [2/2]

virtual void introvirt::windows::nt::NtQueryInformationToken::ResultLength ( uint32_t  ResultLength)
pure virtual

◆ ResultLengthPtr() [1/2]

virtual guest_ptr< void > introvirt::windows::nt::NtQueryInformationToken::ResultLengthPtr ( ) const
pure virtual

Getter for ResultLengthPtr.

Returns
The address pointed to by the the ResultLengthPtr parameter

◆ ResultLengthPtr() [2/2]

virtual void introvirt::windows::nt::NtQueryInformationToken::ResultLengthPtr ( const guest_ptr< void > &  pResultLength)
pure virtual

Setter for ResultLengthPtr.

Parameters
pResultLengthThe address to set for the ResultLengthPtr parameter

◆ TokenHandle() [1/2]

virtual uint64_t introvirt::windows::nt::NtQueryInformationToken::TokenHandle ( ) const
pure virtual

Getter for TokenHandle.

Returns
The value of the TokenHandle parameter

◆ TokenHandle() [2/2]

virtual void introvirt::windows::nt::NtQueryInformationToken::TokenHandle ( uint64_t  TokenHandle)
pure virtual

Setter for TokenHandle.

Parameters
TokenHandleThe value to set for the TokenHandle parameter

◆ TokenInformation() [1/2]

virtual const TOKEN_INFORMATION * introvirt::windows::nt::NtQueryInformationToken::TokenInformation ( ) const
pure virtual

◆ TokenInformation() [2/2]

virtual TOKEN_INFORMATION * introvirt::windows::nt::NtQueryInformationToken::TokenInformation ( )
pure virtual

◆ TokenInformationClass() [1/2]

virtual TOKEN_INFORMATION_CLASS introvirt::windows::nt::NtQueryInformationToken::TokenInformationClass ( ) const
pure virtual

Getter for TokenInformationClass.

Returns
The value of the TokenInformationClass parameter

◆ TokenInformationClass() [2/2]

virtual void introvirt::windows::nt::NtQueryInformationToken::TokenInformationClass ( TOKEN_INFORMATION_CLASS  TokenInformationClass)
pure virtual

Setter for TokenInformationClass.

Parameters
TokenInformationClassThe value to set for the TokenInformationClass parameter

◆ TokenInformationLength() [1/2]

virtual uint32_t introvirt::windows::nt::NtQueryInformationToken::TokenInformationLength ( ) const
pure virtual

Getter for TokenInformationLength.

Returns
The value of the TokenInformationLength parameter

◆ TokenInformationLength() [2/2]

virtual void introvirt::windows::nt::NtQueryInformationToken::TokenInformationLength ( uint32_t  TokenInformationLength)
pure virtual

Setter for TokenInformationLength.

Parameters
TokenInformationLengthThe value to set for the TokenInformationLength parameter

◆ TokenInformationPtr() [1/2]

virtual guest_ptr< void > introvirt::windows::nt::NtQueryInformationToken::TokenInformationPtr ( ) const
pure virtual

Getter for TokenInformationPtr.

Returns
The address pointed to by the the TokenInformationPtr parameter

◆ TokenInformationPtr() [2/2]

virtual void introvirt::windows::nt::NtQueryInformationToken::TokenInformationPtr ( const guest_ptr< void > &  pTokenInformation)
pure virtual

Setter for TokenInformationPtr.

Parameters
pTokenInformationThe address to set for the TokenInformationPtr parameter

The documentation for this class was generated from the following file: