static NativeLibMethods() { LibHandle = NativeMethods.LoadLibrary(LibraryName); MultiplyPtr = NativeMethods.GetProcAddress(LibHandle, "Multiply"); Multiply = Marshal.GetDelegateForFunctionPointer <MultiplyDelegate>(MultiplyPtr); GetFirstCharPtr = NativeMethods.GetProcAddress(LibHandle, "GetFirstChar"); GetFirstChar = Marshal.GetDelegateForFunctionPointer <GetFirstCharDelegate>(GetFirstCharPtr); }
public static extern IntPtr GetProcAddress(NativeLibraryHandle module, string procName);