RAMvader  1.3
A C# library which provides access to other processes' memory space.
RAMvader.CodeInjection.InjectionFailureException Class Reference

An exception thrown by the Injector<TMemoryAlterationSetID, TCodeCave, TVariable> to indicate the injection method has failed. More...

Inherits RAMvader.CodeInjection.InjectorException.

Public Types

enum  EFailureType { EFailureType.evFailureRAMvaderTargetNull, EFailureType.evFailureNotAttached, EFailureType.evFailureMemoryAllocation, EFailureType.evFailureWriteToTarget }
 Indicates the type of failure which caused the exception. More...
 

Public Member Functions

 InjectionFailureException (EFailureType failureType)
 Constructor. More...
 
- Public Member Functions inherited from RAMvader.CodeInjection.InjectorException
 InjectorException (string msg)
 Constructor. More...
 
- Public Member Functions inherited from RAMvader.RAMvaderException
 RAMvaderException (string msg)
 Constructor. More...
 

Properties

EFailureType FailureType [get]
 The type of failure that caused the exception to be thrown. More...
 

Detailed Description

An exception thrown by the Injector<TMemoryAlterationSetID, TCodeCave, TVariable> to indicate the injection method has failed.

Member Enumeration Documentation

◆ EFailureType

Indicates the type of failure which caused the exception.

Enumerator
evFailureRAMvaderTargetNull 

Indicates that the Injector<TMemoryAlterationSetID, TCodeCave, TVariable> has not been initialized with a RAMvaderTarget object. This can be done by calling Injector<TMemoryAlterationSetID, TCodeCave, TVariable>.SetTargetProcess(RAMvaderTarget).

evFailureNotAttached 

Indicates that the RAMvaderTarget object associated to the Injector<TMemoryAlterationSetID, TCodeCave, TVariable> is currently not attached to any process.

evFailureMemoryAllocation 

Indicates that the Injector<TMemoryAlterationSetID, TCodeCave, TVariable> has tried to allocate virtual memory in the target process' memory space, but the allocation failed. This usually happens either when the system denies the allocation or if there are no code caves and injection variables to be injected - which effectivelly means that there's actually NOTHING to be injected into the target process' memory space, making the injection completely unnecessary. Memory allocation happens when you call the Injector<TMemoryAlterationSetID, TCodeCave, TVariable>.Inject() method (the parameterless version of it).

evFailureWriteToTarget 

Indicates that the call to RAMvaderTarget.WriteToTarget(System.IntPtr, byte[]) method has failed.

Constructor & Destructor Documentation

◆ InjectionFailureException()

RAMvader.CodeInjection.InjectionFailureException.InjectionFailureException ( EFailureType  failureType)

Constructor.

Parameters
failureTypeThe type of failure which caused the exception to be thrown.

Property Documentation

◆ FailureType

EFailureType RAMvader.CodeInjection.InjectionFailureException.FailureType
get

The type of failure that caused the exception to be thrown.