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

#include <TOKEN_PRIVILEGES.hh>

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

Public Types

using iterator = array_iterator< LUID_AND_ATTRIBUTES, TOKEN_PRIVILEGES, false >
 
using const_iterator = array_iterator< LUID_AND_ATTRIBUTES, TOKEN_PRIVILEGES, true >
 

Public Member Functions

virtual LUID_AND_ATTRIBUTESoperator[] (uint32_t index)=0
 Get an entry at the specified index.
 
virtual const LUID_AND_ATTRIBUTESoperator[] (uint32_t index) const =0
 
virtual LUID_AND_ATTRIBUTESat (uint32_t index)=0
 Get an entry at the specified index.
 
virtual const LUID_AND_ATTRIBUTESat (uint32_t index) const =0
 
virtual iterator erase (const const_iterator &iter)=0
 Remove an element from the list.
 
virtual uint32_t length () const =0
 Get the number of entries.
 
virtual iterator begin ()=0
 Get an iterator to the first entry.
 
virtual iterator end ()=0
 Get the end iterator.
 
virtual const_iterator begin () const =0
 Get an iterator to the first entry.
 
virtual const_iterator end () const =0
 Get the end iterator.
 
- Public Member Functions inherited from introvirt::windows::nt::TOKEN_INFORMATION
virtual TOKEN_INFORMATION_CLASS TokenInformationClass () const =0
 Get the type of token information held in the buffer.
 
virtual guest_ptr< void > ptr () const =0
 Get the address that the buffer is at.
 
virtual uint32_t buffer_size () const =0
 Get the size of the buffer.
 
virtual void write (std::ostream &os, const std::string &linePrefix="") const =0
 Write a description to the ostream.
 
virtual Json::Value json () const =0
 Return the token information class as a JSON representation.
 
virtual ~TOKEN_INFORMATION ()=default
 

Static Public Member Functions

static std::unique_ptr< TOKEN_PRIVILEGESmake_unique (const guest_ptr< void > &ptr)
 
static std::unique_ptr< TOKEN_PRIVILEGESmake_unique (const guest_ptr< void > &ptr, uint32_t buffer_size)
 
- Static Public Member Functions inherited from introvirt::windows::nt::TOKEN_INFORMATION
static std::unique_ptr< TOKEN_INFORMATIONmake_unique (const NtKernel &kernel, TOKEN_INFORMATION_CLASS information_class, const guest_ptr< void > &ptr, uint32_t buffer_size)
 Create a KEY_VALUE_INFORMATION parser instance.
 

Member Typedef Documentation

◆ const_iterator

◆ iterator

Member Function Documentation

◆ at() [1/2]

virtual const LUID_AND_ATTRIBUTES & introvirt::windows::nt::TOKEN_PRIVILEGES::at ( uint32_t  index) const
pure virtual

◆ at() [2/2]

virtual LUID_AND_ATTRIBUTES & introvirt::windows::nt::TOKEN_PRIVILEGES::at ( uint32_t  index)
pure virtual

Get an entry at the specified index.

Parameters
indexThe index into the array
Returns
LUID_AND_ATTRIBUTES&

◆ begin() [1/2]

virtual const_iterator introvirt::windows::nt::TOKEN_PRIVILEGES::begin ( ) const
pure virtual

Get an iterator to the first entry.

Returns
const_iterator

◆ begin() [2/2]

virtual iterator introvirt::windows::nt::TOKEN_PRIVILEGES::begin ( )
pure virtual

Get an iterator to the first entry.

Returns
const_iterator

◆ end() [1/2]

virtual const_iterator introvirt::windows::nt::TOKEN_PRIVILEGES::end ( ) const
pure virtual

Get the end iterator.

Returns
const_iterator

◆ end() [2/2]

virtual iterator introvirt::windows::nt::TOKEN_PRIVILEGES::end ( )
pure virtual

Get the end iterator.

Returns
const_iterator

◆ erase()

virtual iterator introvirt::windows::nt::TOKEN_PRIVILEGES::erase ( const const_iterator iter)
pure virtual

Remove an element from the list.

Parameters
iterAn iter to the element to remove
Returns
const_iterator containing the next element after the erased one

◆ length()

virtual uint32_t introvirt::windows::nt::TOKEN_PRIVILEGES::length ( ) const
pure virtual

Get the number of entries.

Returns
uint32_t

◆ make_unique() [1/2]

static std::unique_ptr< TOKEN_PRIVILEGES > introvirt::windows::nt::TOKEN_PRIVILEGES::make_unique ( const guest_ptr< void > &  ptr)
static

◆ make_unique() [2/2]

static std::unique_ptr< TOKEN_PRIVILEGES > introvirt::windows::nt::TOKEN_PRIVILEGES::make_unique ( const guest_ptr< void > &  ptr,
uint32_t  buffer_size 
)
static

◆ operator[]() [1/2]

virtual const LUID_AND_ATTRIBUTES & introvirt::windows::nt::TOKEN_PRIVILEGES::operator[] ( uint32_t  index) const
pure virtual

◆ operator[]() [2/2]

virtual LUID_AND_ATTRIBUTES & introvirt::windows::nt::TOKEN_PRIVILEGES::operator[] ( uint32_t  index)
pure virtual

Get an entry at the specified index.

Parameters
indexThe index into the array
Returns
LUID_AND_ATTRIBUTES&

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