Xeno-rat
Loading...
Searching...
No Matches
NAudio.Utils.NativeMethods Class Reference

General purpose native methods for internal NAudio use. More...

Collaboration diagram for NAudio.Utils.NativeMethods:

Public Member Functions

static IntPtr LoadLibrary (string dllToLoad)
 Loads the specified dynamic-link library (DLL) into the address space of the calling process.
 
static IntPtr GetProcAddress (IntPtr hModule, string procedureName)
 Retrieves the address of an exported function or variable from the specified dynamic-link library (DLL).
 
static bool FreeLibrary (IntPtr hModule)
 Frees the loaded dynamic-link library (DLL) module and returns a value indicating success.
 

Detailed Description

General purpose native methods for internal NAudio use.

Member Function Documentation

◆ FreeLibrary()

static bool NAudio.Utils.NativeMethods.FreeLibrary ( IntPtr hModule)

Frees the loaded dynamic-link library (DLL) module and returns a value indicating success.

Parameters
hModuleA handle to the loaded DLL module.
Returns
true if the library is successfully freed; otherwise, false.
Here is the caller graph for this function:

◆ GetProcAddress()

static IntPtr NAudio.Utils.NativeMethods.GetProcAddress ( IntPtr hModule,
string procedureName )

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

Parameters
hModuleA handle to the DLL module that contains the function or variable.
procedureNameThe function or variable name, or the function's ordinal value.
Returns
If the function succeeds, the return value is the address of the exported function or variable. If the function fails, the return value is NULL.
Here is the caller graph for this function:

◆ LoadLibrary()

static IntPtr NAudio.Utils.NativeMethods.LoadLibrary ( string dllToLoad)

Loads the specified dynamic-link library (DLL) into the address space of the calling process.

Parameters
dllToLoadThe name of the DLL to be loaded.
Returns
A handle to the loaded DLL. If the function fails, the return value is NULL.

The LoadLibrary function maps the specified DLL file into the address space of the calling process. If the specified file is a protected system file, the function fails.

Here is the caller graph for this function:

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