270 references to GetLastWin32Error
aspire (5)
Processes\DetachedProcessLauncher.Windows.cs (5)
34throw new Win32Exception(Marshal.GetLastWin32Error(), "Failed to open NUL device"); 40throw new Win32Exception(Marshal.GetLastWin32Error(), "Failed to set NUL handle inheritance"); 52throw new Win32Exception(Marshal.GetLastWin32Error(), "Failed to initialize process thread attribute list"); 73throw new Win32Exception(Marshal.GetLastWin32Error(), "Failed to update process thread attribute list"); 103throw new Win32Exception(Marshal.GetLastWin32Error(), "Failed to create detached process");
csc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
614logger.LogError("Failed to create process. GetLastError={0}", Marshal.GetLastWin32Error());
dotnet (1)
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.10.0-1.26377.101\contentFiles\cs\net11.0\BuildServerConnection.cs (1)
614logger.LogError("Failed to create process. GetLastError={0}", Marshal.GetLastWin32Error());
Microsoft.AspNetCore.Cryptography.Internal (1)
UnsafeNativeMethods.cs (1)
478var lastError = Marshal.GetLastWin32Error();
Microsoft.AspNetCore.DataProtection (2)
Cng\DpapiSecretSerializerHelper.cs (2)
98var errorCode = Marshal.GetLastWin32Error(); 241var errorCode = Marshal.GetLastWin32Error();
Microsoft.AspNetCore.Server.HttpSys (2)
HttpSysException.cs (1)
17: base(Marshal.GetLastWin32Error())
NativeInterop\RequestQueue.cs (1)
113throw new HttpSysException(Marshal.GetLastWin32Error());
Microsoft.Build.Framework (2)
FileSystem\NativeWin32Exception.cs (1)
15/// associated recent error code (<see cref="System.Runtime.InteropServices.Marshal.GetLastWin32Error" />). The <see cref="Exception.Message" />
NativeMethods.cs (1)
847errorMessage = symbolicLinkCreated ? null : Marshal.GetLastWin32Error().ToString();
Microsoft.Build.Tasks.CodeAnalysis (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
614logger.LogError("Failed to create process. GetLastError={0}", Marshal.GetLastWin32Error());
Microsoft.Build.Tasks.Core (2)
ManifestUtil\mansign2.cs (1)
832throw new CryptographicException(Marshal.GetLastWin32Error());
NativeMethods.cs (1)
90errorMessage = hardLinkCreated ? null : log.FormatResourceString("Copy.NonWindowsLinkErrorMessage", "link()", Marshal.GetLastWin32Error());
Microsoft.DotNet.Build.Tasks.Feed (1)
src\common\NativeMethods.cs (1)
30errorMessage = hardLinkCreated ? null : $"The link() library call failed with the following error code: {Marshal.GetLastWin32Error()}.";
Microsoft.NET.Sdk.Razor.Tasks (1)
src\sdk\src\RazorSdk\Tool\ServerProtocol\ServerConnection.cs (1)
379ServerLogger.Log("Failed to create process. GetLastError={0}", Marshal.GetLastWin32Error());
Microsoft.Private.Windows.Core (5)
System\Private\Windows\Ole\DragDropHelper.cs (4)
216throw new Win32Exception(Marshal.GetLastWin32Error(), SR.ExternalException); 223throw new Win32Exception(Marshal.GetLastWin32Error(), SR.ExternalException); 374throw new Win32Exception(Marshal.GetLastWin32Error(), SR.ExternalException); 381throw new Win32Exception(Marshal.GetLastWin32Error(), SR.ExternalException);
Windows\Win32\PInvokeCore.GetWindowText.cs (1)
28int error = Marshal.GetLastWin32Error();
Microsoft.TestPlatform.CrossPlatEngine (1)
PostProcessing\ArtifactProcessingManager.cs (1)
277int error = Marshal.GetLastWin32Error();
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\ErrObject.vb (1)
326Return Marshal.GetLastWin32Error()
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
135Return New ComponentModel.Win32Exception(Marshal.GetLastWin32Error(), GetResourceString(resourceKey, placeHolders))
Microsoft\VisualBasic\Interaction.vb (1)
330errorCode = Marshal.GetLastWin32Error()
Microsoft.Win32.Registry (1)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
57if (Marshal.GetLastWin32Error() == ERROR_INSUFFICIENT_BUFFER)
NuGet.Common (1)
PathUtil\NuGetEnvironment.cs (1)
77var errno = Marshal.GetLastWin32Error(); // fetch the errno before running any other operation
NuGet.Configuration (1)
Utility\FileSystemUtility.cs (1)
45var errno = Marshal.GetLastWin32Error(); // fetch the errno before running any other operation
NuGet.Packaging (2)
Signing\Cms\NativeCms.cs (2)
358var err = Marshal.GetLastWin32Error(); 474var err = Marshal.GetLastWin32Error();
PresentationCore (5)
MS\Internal\AppModel\CookieHandler.cs (1)
118if (!throwIfNoCookie && Marshal.GetLastWin32Error() == NativeMethods.ERROR_NO_MORE_ITEMS)
MS\Internal\FontCache\FontCacheUtil.cs (1)
828Util.ThrowWin32Exception(Marshal.GetLastWin32Error(), fileName);
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (1)
478throw new Win32Exception(Marshal.GetLastWin32Error());
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
52int win32Err = Marshal.GetLastWin32Error();
System\Windows\Input\Cursor.cs (1)
171int errorCode = Marshal.GetLastWin32Error();
PresentationFramework (6)
System\windows\Documents\CaretElement.cs (4)
988int win32Error = Marshal.GetLastWin32Error(); 1020int win32Error = Marshal.GetLastWin32Error(); 1074int win32Error = Marshal.GetLastWin32Error(); 1086win32Error = Marshal.GetLastWin32Error();
System\Windows\Documents\TextFindEngine.cs (1)
579int win32Error = System.Runtime.InteropServices.Marshal.GetLastWin32Error();
System\Windows\Standard\ErrorCodes.cs (1)
105return new Win32Error(Marshal.GetLastWin32Error());
ReachFramework (1)
PrintConfig\FallbackPTProvider.cs (1)
57throw new PrintQueueException(Marshal.GetLastWin32Error(), "PrintConfig.Provider.BindFail", deviceName);
rzc (1)
ServerProtocol\ServerConnection.cs (1)
379ServerLogger.Log("Failed to create process. GetLastError={0}", Marshal.GetLastWin32Error());
System.Diagnostics.EventLog (64)
System\Diagnostics\EventLog.cs (2)
660else if (Marshal.GetLastWin32Error() != Interop.Errors.ERROR_INVALID_PARAMETER) 918lastError = Marshal.GetLastWin32Error();
System\Diagnostics\EventLogInternal.cs (5)
469int error = Marshal.GetLastWin32Error(); 731error = Marshal.GetLastWin32Error(); 907int error = Marshal.GetLastWin32Error(); 1078if (Marshal.GetLastWin32Error() != 0) 1103if (Marshal.GetLastWin32Error() != 0)
System\Diagnostics\Reader\NativeWrapper.cs (57)
59int win32Error = Marshal.GetLastWin32Error(); 77int win32Error = Marshal.GetLastWin32Error(); 91int win32Error = Marshal.GetLastWin32Error(); 101int win32Error = Marshal.GetLastWin32Error(); 126int win32Error = Marshal.GetLastWin32Error(); 140int win32Error = Marshal.GetLastWin32Error(); 149int win32Error = Marshal.GetLastWin32Error(); 163int win32Error = Marshal.GetLastWin32Error(); 179int win32Error = Marshal.GetLastWin32Error(); 192int win32Error = Marshal.GetLastWin32Error(); 205int win32Error = Marshal.GetLastWin32Error(); 218int win32Error = Marshal.GetLastWin32Error(); 226int win32Error = Marshal.GetLastWin32Error(); 245int win32Error = Marshal.GetLastWin32Error(); 258int win32Error = Marshal.GetLastWin32Error(); 271int win32Error = Marshal.GetLastWin32Error(); 282int win32Error = Marshal.GetLastWin32Error(); 300int win32Error = Marshal.GetLastWin32Error(); 308win32Error = Marshal.GetLastWin32Error(); 326int win32Error = Marshal.GetLastWin32Error(); 335int win32Error = Marshal.GetLastWin32Error(); 348int win32Error = Marshal.GetLastWin32Error(); 361int error = Marshal.GetLastWin32Error(); 372error = Marshal.GetLastWin32Error(); 393int error = Marshal.GetLastWin32Error(); 401error = Marshal.GetLastWin32Error(); 423int error = Marshal.GetLastWin32Error(); 431error = Marshal.GetLastWin32Error(); 452int error = Marshal.GetLastWin32Error(); 460error = Marshal.GetLastWin32Error(); 487int error = Marshal.GetLastWin32Error(); 504error = Marshal.GetLastWin32Error(); 532int error = Marshal.GetLastWin32Error(); 541error = Marshal.GetLastWin32Error(); 563int win32Error = Marshal.GetLastWin32Error(); 571win32Error = Marshal.GetLastWin32Error(); 593int win32Error = Marshal.GetLastWin32Error(); 601win32Error = Marshal.GetLastWin32Error(); 693int win32Error = Marshal.GetLastWin32Error(); 703int win32Error = Marshal.GetLastWin32Error(); 718win32Error = Marshal.GetLastWin32Error(); 734int win32Error = Marshal.GetLastWin32Error(); 749win32Error = Marshal.GetLastWin32Error(); 768int win32Error = Marshal.GetLastWin32Error(); 776win32Error = Marshal.GetLastWin32Error(); 802int error = Marshal.GetLastWin32Error(); 809int win32Error = Marshal.GetLastWin32Error(); 903int error = Marshal.GetLastWin32Error(); 910int win32Error = Marshal.GetLastWin32Error(); 939int error = Marshal.GetLastWin32Error(); 960error = Marshal.GetLastWin32Error(); 996int error = Marshal.GetLastWin32Error(); 1010error = Marshal.GetLastWin32Error(); 1051int error = Marshal.GetLastWin32Error(); 1060error = Marshal.GetLastWin32Error(); 1087int error = Marshal.GetLastWin32Error(); 1108error = Marshal.GetLastWin32Error();
System.Diagnostics.PerformanceCounter (5)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
57if (Marshal.GetLastWin32Error() == ERROR_INSUFFICIENT_BUFFER)
System\Diagnostics\PerformanceData\CounterSetInstance.cs (1)
37int Status = (int)((_nativeInst != null) ? Interop.Errors.ERROR_SUCCESS : Marshal.GetLastWin32Error());
System\Diagnostics\SharedPerformanceCounter.cs (3)
1305int error = Marshal.GetLastWin32Error(); 1717if ((Marshal.GetLastWin32Error() != Interop.Errors.ERROR_ACCESS_DENIED) || !_fileMappingHandle.IsInvalid) 1727if ((Marshal.GetLastWin32Error() != Interop.Errors.ERROR_FILE_NOT_FOUND) || !_fileMappingHandle.IsInvalid)
System.Diagnostics.Process (2)
System\Diagnostics\ProcessWaitState.Unix.cs (2)
602int errorCode = Marshal.GetLastWin32Error(); 648int errorCode = Marshal.GetLastWin32Error();
System.Drawing.Common (2)
System\Drawing\BufferedGraphicsContext.cs (1)
412throw new Win32Exception(Marshal.GetLastWin32Error());
System\Drawing\Graphics.cs (1)
3562WIN32_ERROR error = (WIN32_ERROR)Marshal.GetLastWin32Error();
System.IO.FileSystem.AccessControl (1)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
57if (Marshal.GetLastWin32Error() == ERROR_INSUFFICIENT_BUFFER)
System.Net.Http.WinHttpHandler (17)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
57if (Marshal.GetLastWin32Error() == ERROR_INSUFFICIENT_BUFFER)
System\Net\Http\WinHttpChannelBinding.cs (1)
23if (Marshal.GetLastWin32Error() == Interop.WinHttp.ERROR_INSUFFICIENT_BUFFER)
System\Net\Http\WinHttpCookieContainerAdapter.cs (1)
65int lastError = Marshal.GetLastWin32Error();
System\Net\Http\WinHttpException.cs (1)
55int lastError = Marshal.GetLastWin32Error();
System\Net\Http\WinHttpHandler.cs (5)
843int lastError = Marshal.GetLastWin32Error(); 1061int lastError = Marshal.GetLastWin32Error(); 1152NetEventSource.Info(this, "Failed to enable WINHTTP_OPTION_REQUIRE_STREAM_END error code: " + Marshal.GetLastWin32Error()); 1631int lastError = Marshal.GetLastWin32Error(); 1643int lastError = Marshal.GetLastWin32Error();
System\Net\Http\WinHttpRequestCallback.cs (3)
290int lastError = Marshal.GetLastWin32Error(); 351int lastError = Marshal.GetLastWin32Error(); 540int lastError = Marshal.GetLastWin32Error();
System\Net\Http\WinHttpResponseParser.cs (4)
141int lastError = Marshal.GetLastWin32Error(); 166lastError = Marshal.GetLastWin32Error(); 187int lastError = Marshal.GetLastWin32Error(); 220int lastError = Marshal.GetLastWin32Error();
System\Net\Http\WinHttpTrailersHelper.cs (1)
57int lastError = Marshal.GetLastWin32Error();
System.Private.Windows.Core (5)
System\Private\Windows\Ole\DragDropHelper.cs (4)
216throw new Win32Exception(Marshal.GetLastWin32Error(), SR.ExternalException); 223throw new Win32Exception(Marshal.GetLastWin32Error(), SR.ExternalException); 374throw new Win32Exception(Marshal.GetLastWin32Error(), SR.ExternalException); 381throw new Win32Exception(Marshal.GetLastWin32Error(), SR.ExternalException);
Windows\Win32\PInvokeCore.GetWindowText.cs (1)
28int error = Marshal.GetLastWin32Error();
System.Security.Cryptography (1)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
57if (Marshal.GetLastWin32Error() == ERROR_INSUFFICIENT_BUFFER)
System.Security.Cryptography.Pkcs (1)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
57if (Marshal.GetLastWin32Error() == ERROR_INSUFFICIENT_BUFFER)
System.Security.Cryptography.ProtectedData (1)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
57if (Marshal.GetLastWin32Error() == ERROR_INSUFFICIENT_BUFFER)
System.Threading.AccessControl (1)
src\runtime\src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
57if (Marshal.GetLastWin32Error() == ERROR_INSUFFICIENT_BUFFER)
System.Windows.Forms (14)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
857throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed);
System\Windows\Forms\Control.cs (6)
1566int lastWin32Error = Marshal.GetLastWin32Error(); 3759|| (!returnValue && Marshal.GetLastWin32Error() == (int)WIN32_ERROR.ERROR_INVALID_HANDLE) 7685throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed); 10087throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed); 11038throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed); 11054throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32SetParentFailed);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
261int lastWin32Error = Marshal.GetLastWin32Error();
System\Windows\Forms\Dialogs\MessageBox.cs (1)
469int lastWin32Error = Marshal.GetLastWin32Error();
System\Windows\Forms\Input\Cursor.cs (2)
41throw new Win32Exception(string.Format(SR.FailedToLoadCursor, Marshal.GetLastWin32Error())); 430throw new Win32Exception(string.Format(SR.FailedToLoadCursor, Marshal.GetLastWin32Error()));
System\Windows\Forms\NativeWindow.cs (1)
453lastWin32Error = Marshal.GetLastWin32Error();
System\Windows\Forms\NativeWindow.WindowClass.cs (1)
147throw new Win32Exception(Marshal.GetLastWin32Error(), SR.InvalidWndClsName);
System\Windows\Forms\SystemInformation.cs (1)
805return Marshal.GetLastWin32Error() == (int)WIN32_ERROR.ERROR_ACCESS_DENIED;
System.Windows.Forms.Primitives (5)
System\Windows\Forms\Internals\ScaleHelper.DpiAwarenessScope.cs (4)
49throw new Win32Exception(Marshal.GetLastWin32Error(), SR.Win32GetThreadsDpiContextFailed); 64throw new Win32Exception(Marshal.GetLastWin32Error(), string.Format(SR.Win32SetThreadsDpiHostingBehaviorFailed, behavior)); 79throw new Win32Exception(Marshal.GetLastWin32Error(), string.Format(SR.Win32SetThreadsDpiHostingBehaviorFailed, _originalDpiHostingBehavior)); 85throw new Win32Exception(Marshal.GetLastWin32Error(), string.Format(SR.Win32SetThreadsDpiContextFailed, _originalDpiAwarenessContext));
Windows\Win32\PInvoke.LoadLibrary.cs (1)
57if (Marshal.GetLastWin32Error() != (int)WIN32_ERROR.ERROR_INVALID_PARAMETER)
UIAutomationClient (32)
MS\Internal\Automation\HwndProxyElementProvider.cs (2)
1908int lastWin32Error = Marshal.GetLastWin32Error(); 1933int lastWin32Error = Marshal.GetLastWin32Error();
MS\Internal\Automation\Misc.cs (28)
272int lastWin32Error = Marshal.GetLastWin32Error(); 285int lastWin32Error = Marshal.GetLastWin32Error(); 298int lastWin32Error = Marshal.GetLastWin32Error(); 311int lastWin32Error = Marshal.GetLastWin32Error(); 326int lastWin32Error = Marshal.GetLastWin32Error(); 346int lastWin32Error = Marshal.GetLastWin32Error(); 359int lastWin32Error = Marshal.GetLastWin32Error(); 372int lastWin32Error = Marshal.GetLastWin32Error(); 385int lastWin32Error = Marshal.GetLastWin32Error(); 405error = Marshal.GetLastWin32Error(); 412error = Marshal.GetLastWin32Error(); 427int lastWin32Error = Marshal.GetLastWin32Error(); 440int lastWin32Error = Marshal.GetLastWin32Error(); 453int lastWin32Error = Marshal.GetLastWin32Error(); 466ThrowWin32ExceptionsIfError(Marshal.GetLastWin32Error()); 476lastWin32Error = Marshal.GetLastWin32Error(); 486lastWin32Error = Marshal.GetLastWin32Error(); 513int lastWin32Error = Marshal.GetLastWin32Error(); 524lastWin32Error = Marshal.GetLastWin32Error(); 543int lastWin32Error = Marshal.GetLastWin32Error(); 556int lastWin32Error = Marshal.GetLastWin32Error(); 569int lastWin32Error = Marshal.GetLastWin32Error(); 586int lastWin32Error = Marshal.GetLastWin32Error(); 603int lastWin32Error = Marshal.GetLastWin32Error(); 620int lastWin32Error = Marshal.GetLastWin32Error(); 634int lastWin32Error = Marshal.GetLastWin32Error(); 647int lastWin32Error = Marshal.GetLastWin32Error(); 660int lastWin32Error = Marshal.GetLastWin32Error();
MS\Internal\Automation\ProxyManager.cs (2)
224int lastWin32Error = Marshal.GetLastWin32Error(); 238int lastWin32Error = Marshal.GetLastWin32Error();
UIAutomationClientSideProviders (59)
MS\Internal\AutomationProxies\Input.cs (2)
120throw new Win32Exception(Marshal.GetLastWin32Error()); 145throw new Win32Exception(Marshal.GetLastWin32Error());
MS\Internal\AutomationProxies\Misc.cs (54)
119int lastWin32Error = Marshal.GetLastWin32Error(); 163int lastWin32Error = Marshal.GetLastWin32Error(); 176int lastWin32Error = Marshal.GetLastWin32Error(); 191int lastWin32Error = Marshal.GetLastWin32Error(); 215int lastWin32Error = Marshal.GetLastWin32Error(); 255int lastWin32Error = Marshal.GetLastWin32Error(); 272int lastWin32Error = Marshal.GetLastWin32Error(); 287int lastWin32Error = Marshal.GetLastWin32Error(); 301int lastWin32Error = Marshal.GetLastWin32Error(); 425int lastWin32Error = Marshal.GetLastWin32Error(); 438int lastWin32Error = Marshal.GetLastWin32Error(); 451int lastWin32Error = Marshal.GetLastWin32Error(); 464int lastWin32Error = Marshal.GetLastWin32Error(); 477int lastWin32Error = Marshal.GetLastWin32Error(); 491int lastWin32Error = Marshal.GetLastWin32Error(); 504int lastWin32Error = Marshal.GetLastWin32Error(); 517int lastWin32Error = Marshal.GetLastWin32Error(); 530int lastWin32Error = Marshal.GetLastWin32Error(); 550int lastWin32Error = Marshal.GetLastWin32Error(); 615int lastWin32Error = Marshal.GetLastWin32Error(); 672int lastWin32Error = Marshal.GetLastWin32Error(); 711int lastWin32Error = Marshal.GetLastWin32Error(); 722ThrowWin32ExceptionsIfError(Marshal.GetLastWin32Error()); 778int lastWin32Error = Marshal.GetLastWin32Error(); 879int lastWin32Error = Marshal.GetLastWin32Error(); 893int lastWin32Error = Marshal.GetLastWin32Error(); 918int lastWin32Error = Marshal.GetLastWin32Error(); 984lastWin32Error = Marshal.GetLastWin32Error(); 994lastWin32Error = Marshal.GetLastWin32Error(); 1014int lastWin32Error = Marshal.GetLastWin32Error(); 1025lastWin32Error = Marshal.GetLastWin32Error(); 1046int lastWin32Error = Marshal.GetLastWin32Error(); 1081int lastWin32Error = Marshal.GetLastWin32Error(); 1181int lastWin32Error = Marshal.GetLastWin32Error(); 1197int lastWin32Error = Marshal.GetLastWin32Error(); 1252int lastWin32Error = Marshal.GetLastWin32Error(); 1280int lastWin32Error = Marshal.GetLastWin32Error(); 1306int lastWin32Error = Marshal.GetLastWin32Error(); 1332int lastWin32Error = Marshal.GetLastWin32Error(); 1347int lastWin32Error = Marshal.GetLastWin32Error(); 1383int lastWin32Error = Marshal.GetLastWin32Error(); 1396int lastWin32Error = Marshal.GetLastWin32Error(); 1412int lastWin32Error = Marshal.GetLastWin32Error(); 1426int lastWin32Error = Marshal.GetLastWin32Error(); 1445int lastWin32Error = Marshal.GetLastWin32Error(); 1465int lastWin32Error = Marshal.GetLastWin32Error(); 1606int lastWin32Error = Marshal.GetLastWin32Error(); 1719int lastWin32Error = Marshal.GetLastWin32Error(); 1732int lastWin32Error = Marshal.GetLastWin32Error(); 1745int lastWin32Error = Marshal.GetLastWin32Error(); 1758int lastWin32Error = Marshal.GetLastWin32Error(); 1771int lastWin32Error = Marshal.GetLastWin32Error(); 1784int lastWin32Error = Marshal.GetLastWin32Error(); 1797int lastWin32Error = Marshal.GetLastWin32Error();
MS\Internal\AutomationProxies\WindowsAltTab.cs (1)
246int lastWin32Error = Marshal.GetLastWin32Error();
MS\Win32\UnsafeNativeMethods.cs (2)
378error = Marshal.GetLastWin32Error(); 385error = Marshal.GetLastWin32Error();
UIAutomationTypes (11)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (11)
246int error = Marshal.GetLastWin32Error(); 269int error = Marshal.GetLastWin32Error(); 285int win32Err = Marshal.GetLastWin32Error(); 362int win32Err = Marshal.GetLastWin32Error(); 376int win32Err = Marshal.GetLastWin32Error(); 466int errorCode = Marshal.GetLastWin32Error(); 479int errorCode = Marshal.GetLastWin32Error(); 895int error = Marshal.GetLastWin32Error(); 916int error = Marshal.GetLastWin32Error(); 959int error = Marshal.GetLastWin32Error(); 974int error = Marshal.GetLastWin32Error();
vbc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
614logger.LogError("Failed to create process. GetLastError={0}", Marshal.GetLastWin32Error());
VBCSCompiler (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
614logger.LogError("Failed to create process. GetLastError={0}", Marshal.GetLastWin32Error());
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
967throw new Win32Exception(Marshal.GetLastWin32Error());