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