Пример #1
0
 static MsVcRt()
 {
     _hModule = NativeLibrary.Load(_moduleName);
     MemSet   = (MemSetDelegate)Marshal.GetDelegateForFunctionPointer(NativeLibrary.GetExport(_hModule, "memset"), typeof(MemSetDelegate));
     MemICmp  = (MemICmpDelegate)Marshal.GetDelegateForFunctionPointer(NativeLibrary.GetExport(_hModule, "_memicmp"), typeof(MemICmpDelegate));
     MemCpy   = (MemCpyDelegate)Marshal.GetDelegateForFunctionPointer(NativeLibrary.GetExport(_hModule, "memcpy"), typeof(MemCpyDelegate));
 }
Пример #2
0
 static MsVcRt()
 {
     _hModule        = NativeLibrary.Load(_moduleName);
     _clearMemoryInt = Marshal.GetDelegateForFunctionPointer <ClearMemoryDelegate>(NativeLibrary.GetExport(_hModule, "memset"));
     MemICmp         = Marshal.GetDelegateForFunctionPointer <MemICmpDelegate>(NativeLibrary.GetExport(_hModule, "_memicmp"));
 }