9 references to UnsafeNativeMethods
Microsoft.AspNetCore.Cryptography.Internal (9)
SafeHandles\SafeLibraryHandle.cs (9)
28
IntPtr pfnProc =
UnsafeNativeMethods
.GetProcAddress(this, lpProcName);
42
bool retVal =
UnsafeNativeMethods
.GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS | GET_MODULE_HANDLE_EX_FLAG_PIN, this, out _);
45
UnsafeNativeMethods
.ThrowExceptionForLastWin32Error();
61
int numCharsOutput =
UnsafeNativeMethods
.FormatMessage(
90
IntPtr pfnProc =
UnsafeNativeMethods
.GetProcAddress(this, lpProcName);
95
UnsafeNativeMethods
.ThrowExceptionForLastWin32Error();
113
SafeLibraryHandle handle =
UnsafeNativeMethods
.LoadLibraryEx(filename, IntPtr.Zero, LOAD_LIBRARY_SEARCH_SYSTEM32);
116
UnsafeNativeMethods
.ThrowExceptionForLastWin32Error();
124
return
UnsafeNativeMethods
.FreeLibrary(handle);