Pkcs11Interop  4.0.0
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)
 Returns function pointer More...
 
static T GetDelegateForFunctionPointer< T > (IntPtr functionPointer)
 Converts function pointer to a delegate More...
 

Detailed Description

Utility class that helps to manage unmanaged dynamic libraries

Member Function Documentation

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
static IntPtr Net.Pkcs11Interop.Common.UnmanagedLibrary.GetFunctionPointer ( IntPtr  libraryHandle,
string  function 
)
static

Returns function pointer

Parameters
libraryHandleDynamic library handle
functionFunction name
Returns
The function pointer
static IntPtr Net.Pkcs11Interop.Common.UnmanagedLibrary.Load ( string  fileName)
static

Loads the dynamic library

Parameters
fileNameLibrary filename
Returns
Dynamic library handle
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: