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