24 references to ThrowExceptionForHR
Microsoft.Build (10)
InprocTrackingNativeMethods.cs (10)
98Marshal.ThrowExceptionForHR(hresult, new IntPtr(-1)); 104Marshal.ThrowExceptionForHR(hresult, new IntPtr(-1)); 110Marshal.ThrowExceptionForHR(hresult, new IntPtr(-1)); 116Marshal.ThrowExceptionForHR(hresult, new IntPtr(-1)); 122Marshal.ThrowExceptionForHR(hresult, new IntPtr(-1)); 128Marshal.ThrowExceptionForHR(hresult, new IntPtr(-1)); 134Marshal.ThrowExceptionForHR(hresult, new IntPtr(-1)); 140Marshal.ThrowExceptionForHR(hresult, new IntPtr(-1)); 146Marshal.ThrowExceptionForHR(hresult, new IntPtr(-1)); 220Marshal.ThrowExceptionForHR(hresult, new IntPtr(-1));
Microsoft.CodeAnalysis (1)
DiaSymReader\Utilities\InteropUtilities.cs (1)
30Marshal.ThrowExceptionForHR(hr, s_ignoreIErrorInfo);
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\MethodDebugInfo.Native.cs (1)
207Marshal.ThrowExceptionForHR(hr, s_ignoreIErrorInfo);
Microsoft.VisualStudio.LanguageServices (4)
Utilities\Exceptions.cs (4)
16Marshal.ThrowExceptionForHR(VSConstants.E_FAIL, new IntPtr(-1)); 24Marshal.ThrowExceptionForHR(VSConstants.E_INVALIDARG, new IntPtr(-1)); 32Marshal.ThrowExceptionForHR(VSConstants.E_NOTIMPL, new IntPtr(-1)); 40Marshal.ThrowExceptionForHR(VSConstants.E_UNEXPECTED, new IntPtr(-1));
PresentationCore (2)
MS\Internal\Text\TextInterface\DWriteUtil.cs (1)
39System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(hr, new System.IntPtr(-1));
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SecurityHelper.cs (1)
140Marshal.ThrowExceptionForHR(hr, new IntPtr(-1));
System.Private.CoreLib (4)
src\System\Reflection\RuntimeAssembly.cs (1)
734Marshal.ThrowExceptionForHR(tokenMaybe, new IntPtr(-1));
src\System\RuntimeHandles.cs (3)
2122Marshal.ThrowExceptionForHR(offsetMaybe, new IntPtr(-1)); 2140Marshal.ThrowExceptionForHR(offsetMaybe, new IntPtr(-1)); 2158Marshal.ThrowExceptionForHR(callConvMaybe, new IntPtr(-1));
UIAutomationProvider (1)
MS\Internal\Automation\UiaCoreProviderApi.cs (1)
105Marshal.ThrowExceptionForHR(hr, (IntPtr)(-1));
UIAutomationTypes (1)
MS\Internal\Automation\UiaCoreTypesApi.cs (1)
102Marshal.ThrowExceptionForHR(hr, (IntPtr)(-1));