25 references to GetHRForException
mscorlib (2)
system\runtime\interopservices\errorwrapper.cs (1)
43m_ErrorCode = Marshal.GetHRForException(e);
system\runtime\interopservices\windowsruntime\iteratortoenumeratoradapter.cs (1)
192if (Marshal.GetHRForException(e) == __HResults.E_CHANGED_STATE)
PresentationCore (4)
Core\CSharp\System\Windows\Interop\HwndTarget.cs (1)
1621return new IntPtr(Marshal.GetHRForException(e));
Core\CSharp\System\Windows\Media\EventProxy.cs (1)
131return Marshal.GetHRForException(e);
Shared\MS\Internal\SecurityHelper.cs (2)
961int hr = Marshal.GetHRForException(exception); 965Marshal.GetHRForException(new Exception());
System (3)
compmod\system\codedom\compiler\TempFiles.cs (1)
228if (retryCount == 0 || Marshal.GetHRForException(e) != HR_ERROR_FILE_EXISTS)
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (2)
1204throw new Win32Exception(Marshal.GetHRForException(e)); 1238error = Marshal.GetHRForException(e);
System.AddIn (2)
System\Addin\Hosting\AddInStore.cs (2)
1051if ((uint) System.Runtime.InteropServices.Marshal.GetHRForException(e) != 1114if ((uint) System.Runtime.InteropServices.Marshal.GetHRForException(e) !=
System.Core (1)
System\Security\Cryptography\Xml\ManifestSignedXml.cs (1)
252timestamp = new TimestampInformation((SignatureVerificationResult)Marshal.GetHRForException(e));
System.IO.Log (1)
System\IO\Log\LogManagementAsyncResult.cs (1)
278int errorCode = Marshal.GetHRForException(e);
System.ServiceModel (6)
System\ServiceModel\ComIntegration\DispatchProxy.cs (2)
285exceptionInfo.scode = Marshal.GetHRForException(e); 341return Marshal.GetHRForException(e);
System\ServiceModel\ComIntegration\ProxyManager.cs (2)
114return Marshal.GetHRForException(e); 186exceptionInfo.scode = Marshal.GetHRForException(e);
System\ServiceModel\ComIntegration\TearOffProxy.cs (2)
45return new ReturnMessage(DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(e.GetBaseException().Message, Marshal.GetHRForException(e.GetBaseException()))), msg); 61return new ReturnMessage(DiagnosticUtility.ExceptionUtility.ThrowHelperError(new COMException(returnMsg.Exception.GetBaseException().Message, Marshal.GetHRForException(returnMsg.Exception.GetBaseException()))), msg);
System.ServiceModel.WasHosting (2)
System\ServiceModel\WasHosting\MsmqIntegrationProcessProtocolHandler.cs (1)
25listenerChannelCallback.ReportStopped(Marshal.GetHRForException(ex));
System\ServiceModel\WasHosting\MsmqProcessProtocolHandler.cs (1)
25listenerChannelCallback.ReportStopped(System.Runtime.InteropServices.Marshal.GetHRForException(ex));
System.Web (2)
Configuration\CompilationSection.cs (1)
777int hresult = System.Runtime.InteropServices.Marshal.GetHRForException(e);
Hosting\IPipelineRuntime.cs (1)
434return Marshal.GetHRForException(e);
WindowsBase (2)
Shared\MS\Internal\SecurityHelper.cs (2)
961int hr = Marshal.GetHRForException(exception); 965Marshal.GetHRForException(new Exception());