Class NativeLibLoader
Inheritance
System.Object
NativeLibLoader
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SprutTechnology.STMachiningToolsImportHelper
Assembly: STMachiningToolsImportHelper.dll
Syntax
public static class NativeLibLoader
Methods
FreeDll(IntPtr)
Declaration
public static void FreeDll(IntPtr handle)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | handle |
GetProc<delegateT>(IntPtr, String)
Declaration
public static delegateT GetProc<delegateT>(IntPtr dllHandle, string procName)
where delegateT : class
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | dllHandle | |
System.String | procName |
Returns
Type | Description |
---|---|
delegateT |
Type Parameters
Name | Description |
---|---|
delegateT |
LoadDll(String)
Declaration
public static IntPtr LoadDll(string libName)
Parameters
Type | Name | Description |
---|---|---|
System.String | libName |
Returns
Type | Description |
---|---|
System.IntPtr |
LoadDll(String, out Int32)
Declaration
public static IntPtr LoadDll(string libName, out int errorCode)
Parameters
Type | Name | Description |
---|---|---|
System.String | libName | |
System.Int32 | errorCode |
Returns
Type | Description |
---|---|
System.IntPtr |