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

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

#include <NtMapViewOfSection.hh>

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

Public Member Functions

virtual uint64_t SectionHandle () const =0
 Getter for SectionHandle.
 
virtual uint64_t ProcessHandle () const =0
 Getter for ProcessHandle.
 
virtual guest_ptr< void > BaseAddressPtr () const =0
 Getter for BaseAddressPtr.
 
virtual uint64_t ZeroBits () const =0
 Getter for ZeroBits.
 
virtual uint64_t CommitSize () const =0
 Getter for CommitSize.
 
virtual guest_ptr< void > SectionOffsetPtr () const =0
 Getter for SectionOffsetPtr.
 
virtual guest_ptr< void > ViewSizePtr () const =0
 Getter for ViewSizePtr.
 
virtual SECTION_INHERIT InheritDisposition () const =0
 Getter for InheritDisposition.
 
virtual MEMORY_ALLOCATION_TYPE AllocationType () const =0
 Getter for AllocationType.
 
virtual PAGE_PROTECTION Win32Protect () const =0
 Getter for Win32Protect.
 
virtual void SectionHandle (uint64_t SectionHandle)=0
 Setter for SectionHandle.
 
virtual void ProcessHandle (uint64_t ProcessHandle)=0
 Setter for ProcessHandle.
 
virtual void BaseAddressPtr (const guest_ptr< void > &pBaseAddress)=0
 Setter for BaseAddressPtr.
 
virtual void ZeroBits (uint64_t ZeroBits)=0
 Setter for ZeroBits.
 
virtual void CommitSize (uint64_t CommitSize)=0
 Setter for CommitSize.
 
virtual void SectionOffsetPtr (const guest_ptr< void > &pSectionOffset)=0
 Setter for SectionOffsetPtr.
 
virtual void ViewSizePtr (const guest_ptr< void > &pViewSize)=0
 Setter for ViewSizePtr.
 
virtual void InheritDisposition (SECTION_INHERIT InheritDisposition)=0
 Setter for InheritDisposition.
 
virtual void AllocationType (MEMORY_ALLOCATION_TYPE AllocationType)=0
 Setter for AllocationType.
 
virtual void Win32Protect (PAGE_PROTECTION Win32Protect)=0
 Setter for Win32Protect.
 
virtual size_t BaseAddress () const =0
 
virtual void BaseAddress (size_t BaseAddress)=0
 
virtual uint64_t SectionOffset () const =0
 
virtual void SectionOffset (uint64_t SectionOffset)=0
 
virtual size_t ViewSize () const =0
 
virtual void ViewSize (size_t ViewSize)=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 SectionHandle, uint64_t ProcessHandle, size_t *BaseAddress, uint64_t ZeroBits, uint64_t CommitSize, uint64_t *SectionOffset, size_t &ViewSize, SECTION_INHERIT InheritDisposition, MEMORY_ALLOCATION_TYPE AllocationType, PAGE_PROTECTION Win32Protect)
 

Detailed Description

Handler class for the NtMapViewOfSection system call.

Member Function Documentation

◆ AllocationType() [1/2]

virtual MEMORY_ALLOCATION_TYPE introvirt::windows::nt::NtMapViewOfSection::AllocationType ( ) const
pure virtual

Getter for AllocationType.

Returns
The value of the AllocationType parameter

◆ AllocationType() [2/2]

virtual void introvirt::windows::nt::NtMapViewOfSection::AllocationType ( MEMORY_ALLOCATION_TYPE  AllocationType)
pure virtual

Setter for AllocationType.

Parameters
AllocationTypeThe value to set for the AllocationType parameter

◆ BaseAddress() [1/2]

virtual size_t introvirt::windows::nt::NtMapViewOfSection::BaseAddress ( ) const
pure virtual

◆ BaseAddress() [2/2]

virtual void introvirt::windows::nt::NtMapViewOfSection::BaseAddress ( size_t  BaseAddress)
pure virtual

◆ BaseAddressPtr() [1/2]

virtual guest_ptr< void > introvirt::windows::nt::NtMapViewOfSection::BaseAddressPtr ( ) const
pure virtual

Getter for BaseAddressPtr.

Returns
The address pointed to by the the BaseAddressPtr parameter

◆ BaseAddressPtr() [2/2]

virtual void introvirt::windows::nt::NtMapViewOfSection::BaseAddressPtr ( const guest_ptr< void > &  pBaseAddress)
pure virtual

Setter for BaseAddressPtr.

Parameters
pBaseAddressThe address to set for the BaseAddressPtr parameter

◆ CommitSize() [1/2]

virtual uint64_t introvirt::windows::nt::NtMapViewOfSection::CommitSize ( ) const
pure virtual

Getter for CommitSize.

Returns
The value of the CommitSize parameter

◆ CommitSize() [2/2]

virtual void introvirt::windows::nt::NtMapViewOfSection::CommitSize ( uint64_t  CommitSize)
pure virtual

Setter for CommitSize.

Parameters
CommitSizeThe value to set for the CommitSize parameter

◆ InheritDisposition() [1/2]

virtual SECTION_INHERIT introvirt::windows::nt::NtMapViewOfSection::InheritDisposition ( ) const
pure virtual

Getter for InheritDisposition.

Returns
The value of the InheritDisposition parameter

◆ InheritDisposition() [2/2]

virtual void introvirt::windows::nt::NtMapViewOfSection::InheritDisposition ( SECTION_INHERIT  InheritDisposition)
pure virtual

Setter for InheritDisposition.

Parameters
InheritDispositionThe value to set for the InheritDisposition parameter

◆ inject()

static NTSTATUS introvirt::windows::nt::NtMapViewOfSection::inject ( uint64_t  SectionHandle,
uint64_t  ProcessHandle,
size_t *  BaseAddress,
uint64_t  ZeroBits,
uint64_t  CommitSize,
uint64_t *  SectionOffset,
size_t &  ViewSize,
SECTION_INHERIT  InheritDisposition,
MEMORY_ALLOCATION_TYPE  AllocationType,
PAGE_PROTECTION  Win32Protect 
)
static

◆ ProcessHandle() [1/2]

virtual uint64_t introvirt::windows::nt::NtMapViewOfSection::ProcessHandle ( ) const
pure virtual

Getter for ProcessHandle.

Returns
The value of the ProcessHandle parameter

◆ ProcessHandle() [2/2]

virtual void introvirt::windows::nt::NtMapViewOfSection::ProcessHandle ( uint64_t  ProcessHandle)
pure virtual

Setter for ProcessHandle.

Parameters
ProcessHandleThe value to set for the ProcessHandle parameter

◆ SectionHandle() [1/2]

virtual uint64_t introvirt::windows::nt::NtMapViewOfSection::SectionHandle ( ) const
pure virtual

Getter for SectionHandle.

Returns
The value of the SectionHandle parameter

◆ SectionHandle() [2/2]

virtual void introvirt::windows::nt::NtMapViewOfSection::SectionHandle ( uint64_t  SectionHandle)
pure virtual

Setter for SectionHandle.

Parameters
SectionHandleThe value to set for the SectionHandle parameter

◆ SectionOffset() [1/2]

virtual uint64_t introvirt::windows::nt::NtMapViewOfSection::SectionOffset ( ) const
pure virtual

◆ SectionOffset() [2/2]

virtual void introvirt::windows::nt::NtMapViewOfSection::SectionOffset ( uint64_t  SectionOffset)
pure virtual

◆ SectionOffsetPtr() [1/2]

virtual guest_ptr< void > introvirt::windows::nt::NtMapViewOfSection::SectionOffsetPtr ( ) const
pure virtual

Getter for SectionOffsetPtr.

Returns
The address pointed to by the the SectionOffsetPtr parameter

◆ SectionOffsetPtr() [2/2]

virtual void introvirt::windows::nt::NtMapViewOfSection::SectionOffsetPtr ( const guest_ptr< void > &  pSectionOffset)
pure virtual

Setter for SectionOffsetPtr.

Parameters
pSectionOffsetThe address to set for the SectionOffsetPtr parameter

◆ ViewSize() [1/2]

virtual size_t introvirt::windows::nt::NtMapViewOfSection::ViewSize ( ) const
pure virtual

◆ ViewSize() [2/2]

virtual void introvirt::windows::nt::NtMapViewOfSection::ViewSize ( size_t  ViewSize)
pure virtual

◆ ViewSizePtr() [1/2]

virtual guest_ptr< void > introvirt::windows::nt::NtMapViewOfSection::ViewSizePtr ( ) const
pure virtual

Getter for ViewSizePtr.

Returns
The address pointed to by the the ViewSizePtr parameter

◆ ViewSizePtr() [2/2]

virtual void introvirt::windows::nt::NtMapViewOfSection::ViewSizePtr ( const guest_ptr< void > &  pViewSize)
pure virtual

Setter for ViewSizePtr.

Parameters
pViewSizeThe address to set for the ViewSizePtr parameter

◆ Win32Protect() [1/2]

virtual PAGE_PROTECTION introvirt::windows::nt::NtMapViewOfSection::Win32Protect ( ) const
pure virtual

Getter for Win32Protect.

Returns
The value of the Win32Protect parameter

◆ Win32Protect() [2/2]

virtual void introvirt::windows::nt::NtMapViewOfSection::Win32Protect ( PAGE_PROTECTION  Win32Protect)
pure virtual

Setter for Win32Protect.

Parameters
Win32ProtectThe value to set for the Win32Protect parameter

◆ ZeroBits() [1/2]

virtual uint64_t introvirt::windows::nt::NtMapViewOfSection::ZeroBits ( ) const
pure virtual

Getter for ZeroBits.

Returns
The value of the ZeroBits parameter

◆ ZeroBits() [2/2]

virtual void introvirt::windows::nt::NtMapViewOfSection::ZeroBits ( uint64_t  ZeroBits)
pure virtual

Setter for ZeroBits.

Parameters
ZeroBitsThe value to set for the ZeroBits parameter

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