1 2 3 4 5 6 7 8 9 10 11 12 13 14
| [DllImport("kernel32", SetLastError = true, CharSet = CharSet.Unicode)]
static extern IntPtr LoadLibrary(string lpFileName);
[DllImport("kernel32", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
static extern UIntPtr GetProcAddress(IntPtr hModule, string procName);
internal static class UnsafeNativeMethods
{
[DllImport("kernel32", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)]
internal static extern IntPtr GetProcAddress(IntPtr hModule, string procName);
}
[UnmanagedFunctionPointer(CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
internal delegate int MaMethodeInvoker(string pProfile, string pPW, string pIniFile, string pInputFile, string pOutputFile, [MarshalAs(UnmanagedType.LPStr)] StringBuilder ErrBuff, int BuffLen); |
Partager