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

An abstract class reprseneting a more specific file information buffer. More...

#include <FILE_INFORMATION.hh>

Inheritance diagram for introvirt::windows::nt::FILE_INFORMATION:

Public Member Functions

virtual FILE_INFORMATION_CLASS FileInformationClass () const =0
 Get the type of file 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 file information class as a JSON representation.
 
virtual ~FILE_INFORMATION ()=default
 

Static Public Member Functions

static std::unique_ptr< FILE_INFORMATIONmake_unique (const NtKernel &kernel, FILE_INFORMATION_CLASS information_class, const guest_ptr< void > &ptr, uint32_t buffer_size)
 Create a KEY_VALUE_INFORMATION parser instance.
 

Detailed Description

An abstract class reprseneting a more specific file information buffer.

Constructor & Destructor Documentation

◆ ~FILE_INFORMATION()

virtual introvirt::windows::nt::FILE_INFORMATION::~FILE_INFORMATION ( )
virtualdefault

Member Function Documentation

◆ buffer_size()

virtual uint32_t introvirt::windows::nt::FILE_INFORMATION::buffer_size ( ) const
pure virtual

Get the size of the buffer.

Returns
uint32_t

◆ FileInformationClass()

virtual FILE_INFORMATION_CLASS introvirt::windows::nt::FILE_INFORMATION::FileInformationClass ( ) const
pure virtual

Get the type of file information held in the buffer.

Returns
FILE_INFORMATION_CLASS

◆ json()

virtual Json::Value introvirt::windows::nt::FILE_INFORMATION::json ( ) const
pure virtual

Return the file information class as a JSON representation.

Returns
Json::Value

◆ make_unique()

static std::unique_ptr< FILE_INFORMATION > introvirt::windows::nt::FILE_INFORMATION::make_unique ( const NtKernel kernel,
FILE_INFORMATION_CLASS  information_class,
const guest_ptr< void > &  ptr,
uint32_t  buffer_size 
)
static

Create a KEY_VALUE_INFORMATION parser instance.

Parameters
kernelThe kernel of the guest
information_classThe type of information contained in the buffer
ptrThe address of the information in the guest
buffer_sizeThe size of the information buffer

◆ ptr()

virtual guest_ptr< void > introvirt::windows::nt::FILE_INFORMATION::ptr ( ) const
pure virtual

Get the address that the buffer is at.

Returns
guest_ptr<void>

◆ write()

virtual void introvirt::windows::nt::FILE_INFORMATION::write ( std::ostream &  os,
const std::string &  linePrefix = "" 
) const
pure virtual

Write a description to the ostream.

Parameters
osThe output stream to write to
linePrefixThe prefix written before each line

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