RAMvader  1.4
A .NET library which provides access to other processes' memory space.
RAMvader.CodeInjection.VariableDefinition Class Reference

Keeps the metadata related to an injection variable. More...

Public Member Functions

 VariableDefinition (Object initialValue)
 Constructor. More...
 
Object GetInitialValue ()
 Retrieves the initial value of the variable. When the Injector<TMemoryAlterationSetID, TCodeCave, TVariable> injects the variable in the target process' memory space, it initializes the variable to this value. More...
 
Type GetInjectionVariableType ()
 

Properties

Object InitialValue [get]
 Backed by the m_initialValue field. More...
 

Detailed Description

Keeps the metadata related to an injection variable.

Constructor & Destructor Documentation

◆ VariableDefinition()

RAMvader.CodeInjection.VariableDefinition.VariableDefinition ( Object  initialValue)

Constructor.

Parameters
initialValueThe initial value of the variable. This should be specified with structures from the basic values which are supported by the Injector<TMemoryAlterationSetID, TCodeCave, TVariable> (Byte, Int32, UInt64, Single, Double, etc.). By providing these structures, you are both telling the injector about the SIZE of the injected variable and its initial value.
Exceptions
NullReferenceExceptionThrown when the given initial value of the variable is
null
.

Member Function Documentation

◆ GetInitialValue()

Object RAMvader.CodeInjection.VariableDefinition.GetInitialValue ( )

Retrieves the initial value of the variable. When the Injector<TMemoryAlterationSetID, TCodeCave, TVariable> injects the variable in the target process' memory space, it initializes the variable to this value.

Returns
Returns the initial value of the variable.

◆ GetInjectionVariableType()

Type RAMvader.CodeInjection.VariableDefinition.GetInjectionVariableType ( )

Retrieves the Type of the injection variable.

The Type of the injection variable is defined to be the same type as the initial value of the variable, which is passed in its definition's constructor (VariableDefinition(object)). Thus, another way to get the injection variable's type is by calling GetInitialValue to retrieve the initial value of the variable, and then calling object.GetType on the returned value.

Returns
Returns the Type of the injection variable.

Property Documentation

◆ InitialValue

Object RAMvader.CodeInjection.VariableDefinition.InitialValue
get

Backed by the m_initialValue field.