General purpose native methods for internal NAudio use.
More...
|
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.
|
|
General purpose native methods for internal NAudio use.
◆ FreeLibrary()
static bool NAudio.Utils.NativeMethods.FreeLibrary |
( |
IntPtr | hModule | ) |
|
Frees the loaded dynamic-link library (DLL) module and returns a value indicating success.
- Parameters
-
hModule | A handle to the loaded DLL module. |
- Returns
true
if the library is successfully freed; otherwise, false
.
◆ 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
-
hModule | A handle to the DLL module that contains the function or variable. |
procedureName | The 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.
◆ 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
-
dllToLoad | The 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.
The documentation for this class was generated from the following file:
- /Users/sumansaurabh/Documents/my-startup/xeno-rat/Plugins/LiveMicrophone/lib/NAudio.Core/Utils/NativeMethods.cs