Utility class that helps to manage unmanaged dynamic libraries
More...
Utility class that helps to manage unmanaged dynamic libraries
◆ GetDelegateForFunctionPointer< T >()
static T Net.Pkcs11Interop.Common.UnmanagedLibrary.GetDelegateForFunctionPointer< T > |
( |
IntPtr |
functionPointer | ) |
|
|
static |
Converts function pointer to a delegate
- Template Parameters
-
- Parameters
-
functionPointer | Function pointer |
- Returns
- Delegate
◆ GetFunctionDelegate< T >()
static T Net.Pkcs11Interop.Common.UnmanagedLibrary.GetFunctionDelegate< T > |
( |
IntPtr |
libraryHandle, |
|
|
string |
function |
|
) |
| |
|
static |
Gets delegate for specified unmanaged function
- Template Parameters
-
- Parameters
-
libraryHandle | Dynamic library handle |
function | Function name |
- Returns
- Delegate for specified unmanaged function
◆ GetFunctionPointer()
static IntPtr Net.Pkcs11Interop.Common.UnmanagedLibrary.GetFunctionPointer |
( |
IntPtr |
libraryHandle, |
|
|
string |
function |
|
) |
| |
|
static |
Gets function pointer for specified unmanaged function
- Parameters
-
libraryHandle | Dynamic library handle |
function | Function name |
- Returns
- The function pointer for specified unmanaged function
◆ Load()
static IntPtr Net.Pkcs11Interop.Common.UnmanagedLibrary.Load |
( |
string |
fileName | ) |
|
|
static |
Loads the dynamic library
- Parameters
-
- Returns
- Dynamic library handle
◆ Unload()
static void Net.Pkcs11Interop.Common.UnmanagedLibrary.Unload |
( |
IntPtr |
libraryHandle | ) |
|
|
static |
Unloads the dynamic library
- Parameters
-
libraryHandle | Dynamic library handle |
The documentation for this class was generated from the following file: