6 references to GetExceptionForHR
PresentationCore (2)
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (1)
775Exception exceptionForHR = Marshal.GetExceptionForHR(hr, (IntPtr)(-1));
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SecurityHelper.cs (1)
133return Marshal.GetExceptionForHR(hr, new IntPtr(-1));
PresentationFramework (2)
MS\Internal\WindowsRuntime\Generated\WinRT\ExceptionHelpers.cs (1)
148ex = Marshal.GetExceptionForHR(hr, iErrorInfo?.ThisPtr ?? (IntPtr)(-1));
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SecurityHelper.cs (1)
133return Marshal.GetExceptionForHR(hr, new IntPtr(-1));
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (2)
644public static Exception? GetExceptionForHR(int errorCode) => GetExceptionForHR(errorCode, IntPtr.Zero); 864throw GetExceptionForHR(errorCode, errorInfo)!;