Pkcs11Interop  5.1.2
Static Public Member Functions | List of all members
Net.Pkcs11Interop.Common.UnmanagedLibrary Class Reference

Utility class that helps to manage unmanaged dynamic libraries More...

Static Public Member Functions

static IntPtr Load (string fileName)
 Loads the dynamic library More...
 
static void Unload (IntPtr libraryHandle)
 Unloads the dynamic library More...
 
static IntPtr GetFunctionPointer (IntPtr libraryHandle, string function)
 Gets function pointer for specified unmanaged function More...
 
static T GetDelegateForFunctionPointer< T > (IntPtr functionPointer)
 Converts function pointer to a delegate More...
 
static T GetFunctionDelegate< T > (IntPtr libraryHandle, string function)
 Gets delegate for specified unmanaged function More...
 

Detailed Description

Utility class that helps to manage unmanaged dynamic libraries

Member Function Documentation

◆ GetDelegateForFunctionPointer< T >()

static T Net.Pkcs11Interop.Common.UnmanagedLibrary.GetDelegateForFunctionPointer< T > ( IntPtr  functionPointer)
static

Converts function pointer to a delegate

Template Parameters
TType of delegate
Parameters
functionPointerFunction 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
TType of delegate
Parameters
libraryHandleDynamic library handle
functionFunction 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
libraryHandleDynamic library handle
functionFunction 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
fileNameLibrary filename
Returns
Dynamic library handle

◆ Unload()

static void Net.Pkcs11Interop.Common.UnmanagedLibrary.Unload ( IntPtr  libraryHandle)
static

Unloads the dynamic library

Parameters
libraryHandleDynamic library handle

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