C# Class AgaHackTools.Main.Native.NativeHelper

Datei anzeigen Open project: aganonki/HackTools

Public Methods

Method Description
FreeLibrary ( ProcessModule module ) : void

Frees the loaded dynamic-link library (DLL) module and, if necessary, decrements its reference count.

FreeLibrary ( string libraryName ) : void

Frees the loaded dynamic-link library (DLL) module and, if necessary, decrements its reference count.

GetProcAddress ( ProcessModule module, string functionName ) : IntPtr

Retrieves the address of an exported function or variable from the specified dynamic-link library (DLL).

GetProcAddress ( string moduleName, string functionName ) : IntPtr

Retrieves the address of an exported function or variable from the specified dynamic-link library (DLL).

LoadLibrary ( string libraryPath ) : ProcessModule

Loads the specified module into the address space of the calling process.

Method Details

FreeLibrary() public static method

Frees the loaded dynamic-link library (DLL) module and, if necessary, decrements its reference count.
public static FreeLibrary ( ProcessModule module ) : void
module System.Diagnostics.ProcessModule The object corresponding to the library to free.
return void

FreeLibrary() public static method

Frees the loaded dynamic-link library (DLL) module and, if necessary, decrements its reference count.
public static FreeLibrary ( string libraryName ) : void
libraryName string The name of the library to free (not case-sensitive).
return void

GetProcAddress() public static method

Retrieves the address of an exported function or variable from the specified dynamic-link library (DLL).
public static GetProcAddress ( ProcessModule module, string functionName ) : IntPtr
module System.Diagnostics.ProcessModule The object corresponding to the module.
functionName string The function or variable name, or the function's ordinal value.
return System.IntPtr

GetProcAddress() public static method

Retrieves the address of an exported function or variable from the specified dynamic-link library (DLL).
public static GetProcAddress ( string moduleName, string functionName ) : IntPtr
moduleName string The module name (not case-sensitive).
functionName string The function or variable name, or the function's ordinal value.
return System.IntPtr

LoadLibrary() public static method

Loads the specified module into the address space of the calling process.
public static LoadLibrary ( string libraryPath ) : ProcessModule
libraryPath string /// The name of the module. This can be either a library module (a .dll file) or an executable /// module (an .exe file). ///
return System.Diagnostics.ProcessModule