220 references to GetLastPInvokeError
Microsoft.DotNet.HotReload.Watch (1)
Utilities\ProcessUtilities.cs (1)
30var error = Marshal.GetLastPInvokeError();
Microsoft.Extensions.DotNetDeltaApplier (1)
src\sdk\src\Dotnet.Watch\HotReloadAgent.Host\StartupHook.cs (1)
154var error = Marshal.GetLastPInvokeError();
Microsoft.Win32.SystemEvents (1)
Microsoft\Win32\SystemEvents.cs (1)
682Debug.WriteLine("Unable to register broadcast window class: {0}", Marshal.GetLastPInvokeError());
System.Console (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
159return ConvertErrorPlatformToPal(Marshal.GetLastPInvokeError()); 164return new ErrorInfo(Marshal.GetLastPInvokeError());
System.Diagnostics.FileVersionInfo (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
159return ConvertErrorPlatformToPal(Marshal.GetLastPInvokeError()); 164return new ErrorInfo(Marshal.GetLastPInvokeError());
System.Diagnostics.Process (5)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
159return ConvertErrorPlatformToPal(Marshal.GetLastPInvokeError()); 164return new ErrorInfo(Marshal.GetLastPInvokeError());
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.ForkAndExecProcess.cs (1)
81return result == 0 ? 0 : Marshal.GetLastPInvokeError();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetSetPriority.cs (1)
35return Marshal.GetLastPInvokeError();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.ReadLink.cs (1)
48error = Marshal.GetLastPInvokeError();
System.DirectoryServices (37)
System\DirectoryServices\ActiveDirectory\ActiveDirectorySite.cs (2)
1312throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 1356throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError());
System\DirectoryServices\ActiveDirectory\DirectoryContext.cs (1)
689throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError());
System\DirectoryServices\ActiveDirectory\DirectoryServer.cs (6)
288throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 312throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 336throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 639throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 684throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 722throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError());
System\DirectoryServices\ActiveDirectory\DomainController.cs (4)
1063throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 1147throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 1235throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 1274throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError());
System\DirectoryServices\ActiveDirectory\Forest.cs (2)
855throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 891throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError());
System\DirectoryServices\ActiveDirectory\ForestTrustDomainInformation.cs (1)
33throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError());
System\DirectoryServices\ActiveDirectory\ForestTrustRelationshipInformation.cs (1)
187throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError());
System\DirectoryServices\ActiveDirectory\Utils.cs (20)
119throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 174throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 214throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 249throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 643throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 672throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 694throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 721throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 966throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 973result = Marshal.GetLastPInvokeError(); 990throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 996throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 1009throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 1866throw ExceptionHelper.GetExceptionFromErrorCode(Marshal.GetLastPInvokeError()); 2049if ((error = Marshal.GetLastPInvokeError()) == 1008) // ERROR_NO_TOKEN 2061int lastError = Marshal.GetLastPInvokeError(); 2085if ((getTokenInfoError = Marshal.GetLastPInvokeError()) != 122) // ERROR_INSUFFICIENT_BUFFER 2105int lastError = Marshal.GetLastPInvokeError(); 2122int lastError = Marshal.GetLastPInvokeError(); 2179int lastError = Marshal.GetLastPInvokeError();
System.DirectoryServices.AccountManagement (16)
System\DirectoryServices\AccountManagement\AuthZSet.cs (5)
103if (!f && (bufferSize > 0) && (Marshal.GetLastPInvokeError() == 122) /*ERROR_INSUFFICIENT_BUFFER*/) 157lastError = Marshal.GetLastPInvokeError(); 162lastError = Marshal.GetLastPInvokeError(); 168lastError = Marshal.GetLastPInvokeError(); 173lastError = Marshal.GetLastPInvokeError();
System\DirectoryServices\AccountManagement\Utils.cs (11)
131int lastErrorCode = Marshal.GetLastPInvokeError(); 361if ((error = Marshal.GetLastPInvokeError()) == 1008) // ERROR_NO_TOKEN 373int lastError = Marshal.GetLastPInvokeError(); 401if ((getTokenInfoError = Marshal.GetLastPInvokeError()) != 122) // ERROR_INSUFFICIENT_BUFFER 423int lastError = Marshal.GetLastPInvokeError(); 444int lastError = Marshal.GetLastPInvokeError(); 514int lastError = Marshal.GetLastPInvokeError(); 609int lastErr = Marshal.GetLastPInvokeError(); 628lastErr = Marshal.GetLastPInvokeError(); 758int lastError = Marshal.GetLastPInvokeError(); 768int lastError = Marshal.GetLastPInvokeError();
System.Drawing.Common (2)
System\Drawing\Printing\DefaultPrintController.cs (1)
51WIN32_ERROR error = (WIN32_ERROR)Marshal.GetLastPInvokeError();
System\Drawing\Printing\PrinterSettings.cs (1)
144WIN32_ERROR error = (WIN32_ERROR)Marshal.GetLastPInvokeError();
System.Formats.Tar (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
159return ConvertErrorPlatformToPal(Marshal.GetLastPInvokeError()); 164return new ErrorInfo(Marshal.GetLastPInvokeError());
System.IO.FileSystem.AccessControl (7)
src\runtime\src\libraries\Common\src\System\IO\FileSystem.Attributes.Windows.cs (2)
61errorCode = Marshal.GetLastPInvokeError(); 87errorCode = Marshal.GetLastPInvokeError();
src\runtime\src\libraries\Common\src\System\IO\FileSystem.DirectoryCreation.Windows.cs (1)
90int currentError = Marshal.GetLastPInvokeError();
src\runtime\src\libraries\Common\src\System\IO\Win32Marshal.cs (1)
19=> GetExceptionForWin32Error(Marshal.GetLastPInvokeError(), path);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PathHelper.Windows.cs (2)
87int errorCode = Marshal.GetLastPInvokeError(); 190int error = Marshal.GetLastPInvokeError();
System\IO\FileSystemAclExtensions.cs (1)
312int errorCode = Marshal.GetLastPInvokeError();
System.IO.FileSystem.DriveInfo (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
159return ConvertErrorPlatformToPal(Marshal.GetLastPInvokeError()); 164return new ErrorInfo(Marshal.GetLastPInvokeError());
System.IO.FileSystem.Watcher (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
159return ConvertErrorPlatformToPal(Marshal.GetLastPInvokeError()); 164return new ErrorInfo(Marshal.GetLastPInvokeError());
System.IO.MemoryMappedFiles (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
159return ConvertErrorPlatformToPal(Marshal.GetLastPInvokeError()); 164return new ErrorInfo(Marshal.GetLastPInvokeError());
System.IO.Pipes (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
159return ConvertErrorPlatformToPal(Marshal.GetLastPInvokeError()); 164return new ErrorInfo(Marshal.GetLastPInvokeError());
System.IO.Ports (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
159return ConvertErrorPlatformToPal(Marshal.GetLastPInvokeError()); 164return new ErrorInfo(Marshal.GetLastPInvokeError());
System.Management (1)
System\Management\ManagementScope.cs (1)
316throw new Win32Exception(Marshal.GetLastPInvokeError(), SR.Format(SR.LoadLibraryFailed, wminet_utilsPath));
System.Net.Http.WinHttpHandler (1)
src\runtime\src\libraries\Common\src\System\Net\Security\CertificateValidation.Windows.cs (1)
32throw new CryptographicException(Marshal.GetLastPInvokeError());
System.Net.HttpListener (1)
System\Net\HttpListenerException.cs (1)
14public HttpListenerException() : base(Marshal.GetLastPInvokeError())
System.Net.NameResolution (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
159return ConvertErrorPlatformToPal(Marshal.GetLastPInvokeError()); 164return new ErrorInfo(Marshal.GetLastPInvokeError());
System.Net.NetworkInformation (3)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
159return ConvertErrorPlatformToPal(Marshal.GetLastPInvokeError()); 164return new ErrorInfo(Marshal.GetLastPInvokeError());
src\runtime\src\libraries\Common\src\System\Net\NetworkInformation\NetworkInformationException.cs (1)
25public NetworkInformationException() : base(Marshal.GetLastPInvokeError())
System.Net.Ping (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
159return ConvertErrorPlatformToPal(Marshal.GetLastPInvokeError()); 164return new ErrorInfo(Marshal.GetLastPInvokeError());
System.Net.Primitives (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
159return ConvertErrorPlatformToPal(Marshal.GetLastPInvokeError()); 164return new ErrorInfo(Marshal.GetLastPInvokeError());
System.Net.Quic (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
159return ConvertErrorPlatformToPal(Marshal.GetLastPInvokeError()); 164return new ErrorInfo(Marshal.GetLastPInvokeError());
System.Net.Security (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
159return ConvertErrorPlatformToPal(Marshal.GetLastPInvokeError()); 164return new ErrorInfo(Marshal.GetLastPInvokeError());
System.Net.Sockets (2)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
159return ConvertErrorPlatformToPal(Marshal.GetLastPInvokeError()); 164return new ErrorInfo(Marshal.GetLastPInvokeError());
System.Net.WebSockets (1)
System\Net\WebSockets\WebSocketException.cs (1)
18: this(Marshal.GetLastPInvokeError())
System.Private.CoreLib (20)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
159return ConvertErrorPlatformToPal(Marshal.GetLastPInvokeError()); 164return new ErrorInfo(Marshal.GetLastPInvokeError());
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.ReadLink.cs (1)
48error = Marshal.GetLastPInvokeError();
src\runtime\src\libraries\System.Private.CoreLib\src\System\ComponentModel\Win32Exception.cs (3)
26public Win32Exception() : this(Marshal.GetLastPInvokeError()) 48public Win32Exception(string? message) : this(Marshal.GetLastPInvokeError(), message) 58NativeErrorCode = Marshal.GetLastPInvokeError();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Nls.cs (3)
72Debug.Assert(ret >= 0 || Marshal.GetLastPInvokeError() == Interop.Errors.ERROR_SUCCESS); 291Debug.Assert(result >= 0 || Marshal.GetLastPInvokeError() == Interop.Errors.ERROR_SUCCESS); 460if (Marshal.GetLastPInvokeError() == Interop.Errors.ERROR_INSUFFICIENT_BUFFER)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.Nls.cs (1)
174int lastError = Marshal.GetLastPInvokeError();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Nls.cs (4)
67int lastError = Marshal.GetLastPInvokeError(); 139int lastError = Marshal.GetLastPInvokeError(); 182int lastError = Marshal.GetLastPInvokeError(); 205int lastError = Marshal.GetLastPInvokeError();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CriticalHandle.cs (1)
149int lastError = Marshal.GetLastPInvokeError();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (3)
1258int dwLastError = GetLastPInvokeError(); 1364return GetLastPInvokeError(); 1373return GetPInvokeErrorMessage(GetLastPInvokeError());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NativeLibrary.cs (1)
263throw new Win32Exception(Marshal.GetLastPInvokeError());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeHandle.cs (1)
259int lastError = Marshal.GetLastPInvokeError();
System.Security.AccessControl (8)
System\Security\AccessControl\Privilege.cs (6)
100int error = Marshal.GetLastPInvokeError(); 177cachingError = Marshal.GetLastPInvokeError(); 223error = Marshal.GetLastPInvokeError(); 456error = Marshal.GetLastPInvokeError(); 458else if (Interop.Errors.ERROR_NOT_ALL_ASSIGNED == Marshal.GetLastPInvokeError()) 551error = Marshal.GetLastPInvokeError();
System\Security\AccessControl\SecurityDescriptor.cs (1)
623error = Marshal.GetLastPInvokeError();
System\Security\AccessControl\Win32.cs (1)
35errorCode = Marshal.GetLastPInvokeError();
System.Security.Cryptography (32)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\CertificateHelpers.Windows.cs (1)
223int dwErrorCode = Marshal.GetLastPInvokeError();
System\Security\Cryptography\CapiHelper.Windows.cs (1)
767return Marshal.GetLastPInvokeError();
System\Security\Cryptography\X509Certificates\CertificateHelpers.Windows.cs (1)
14Marshal.GetLastPInvokeError().ToCryptographicException();
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.cs (2)
283throw Marshal.GetLastPInvokeError().ToCryptographicException(); 322throw Marshal.GetLastPInvokeError().ToCryptographicException();
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.PrivateKey.cs (1)
276Exception e = Marshal.GetLastPInvokeError().ToCryptographicException();
System\Security\Cryptography\X509Certificates\ChainPal.Windows.cs (1)
55int errorCode = Marshal.GetLastPInvokeError();
System\Security\Cryptography\X509Certificates\FindPal.Windows.cs (1)
426throw Marshal.GetLastPInvokeError().ToCryptographicException();
System\Security\Cryptography\X509Certificates\StorePal.Windows.cs (2)
55throw Marshal.GetLastPInvokeError().ToCryptographicException(); 74throw Marshal.GetLastPInvokeError().ToCryptographicException();
System\Security\Cryptography\X509Certificates\StorePal.Windows.Export.cs (2)
257throw Marshal.GetLastPInvokeError().ToCryptographicException(); 264throw Marshal.GetLastPInvokeError().ToCryptographicException();
System\Security\Cryptography\X509Certificates\StorePal.Windows.Import.cs (3)
54Exception e = Marshal.GetLastPInvokeError().ToCryptographicException(); 178throw Marshal.GetLastPInvokeError().ToCryptographicException(); 199Exception e = Marshal.GetLastPInvokeError().ToCryptographicException();
System\Security\Cryptography\X509Certificates\WindowsHelpers.cs (4)
94throw Marshal.GetLastPInvokeError().ToCryptographicException(); 116throw Marshal.GetLastPInvokeError().ToCryptographicException(); 140throw Marshal.GetLastPInvokeError().ToCryptographicException(); 162throw Marshal.GetLastPInvokeError().ToCryptographicException();
System\Security\Cryptography\X509Certificates\WindowsInterop.crypt32.cs (7)
29throw Marshal.GetLastPInvokeError().ToCryptographicException(); 37throw Marshal.GetLastPInvokeError().ToCryptographicException(); 108throw Marshal.GetLastPInvokeError().ToCryptographicException(); 112throw Marshal.GetLastPInvokeError().ToCryptographicException(); 121throw Marshal.GetLastPInvokeError().ToCryptographicException(); 125throw Marshal.GetLastPInvokeError().ToCryptographicException(); 134Exception e = Marshal.GetLastPInvokeError().ToCryptographicException();
System\Security\Cryptography\X509Certificates\X509Pal.Windows.GetCertContentType.cs (2)
37throw Marshal.GetLastPInvokeError().ToCryptographicException(); 66throw Marshal.GetLastPInvokeError().ToCryptographicException();
System\Security\Cryptography\X509Certificates\X509Pal.Windows.PublicKey.cs (2)
205throw Marshal.GetLastPInvokeError().ToCryptographicException(); 209throw Marshal.GetLastPInvokeError().ToCryptographicException();
System\Security\Cryptography\X509Certificates\X509Pal.Windows.X500DistinguishedName.cs (2)
51throw Marshal.GetLastPInvokeError().ToCryptographicException(); 55throw Marshal.GetLastPInvokeError().ToCryptographicException();
System.Security.Cryptography.Pkcs (31)
Internal\Cryptography\Pal\Windows\DecryptorPalWindows.Decode.cs (2)
33throw Marshal.GetLastPInvokeError().ToCryptographicException(); 41throw Marshal.GetLastPInvokeError().ToCryptographicException();
Internal\Cryptography\Pal\Windows\DecryptorPalWindows.DecodeRecipients.cs (1)
22throw Marshal.GetLastPInvokeError().ToCryptographicException();
Internal\Cryptography\Pal\Windows\DecryptorPalWindows.Decrypt.cs (2)
140ErrorCode errorCode = (ErrorCode)(Marshal.GetLastPInvokeError()); 152ErrorCode errorCode = (ErrorCode)(Marshal.GetLastPInvokeError());
Internal\Cryptography\Pal\Windows\HelpersWindows.cs (17)
37throw Marshal.GetLastPInvokeError().ToCryptographicException(); 43throw Marshal.GetLastPInvokeError().ToCryptographicException(); 55throw Marshal.GetLastPInvokeError().ToCryptographicException(); 61Exception e = Marshal.GetLastPInvokeError().ToCryptographicException(); 85throw Marshal.GetLastPInvokeError().ToCryptographicException(); 94throw Marshal.GetLastPInvokeError().ToCryptographicException(); 129throw Marshal.GetLastPInvokeError().ToCryptographicException(); 162throw Marshal.GetLastPInvokeError().ToCryptographicException(); 166throw Marshal.GetLastPInvokeError().ToCryptographicException(); 187throw Marshal.GetLastPInvokeError().ToCryptographicException(); 196throw Marshal.GetLastPInvokeError().ToCryptographicException(); 273throw Marshal.GetLastPInvokeError().ToCryptographicException(); 342int lastError = Marshal.GetLastPInvokeError(); 379throw Marshal.GetLastPInvokeError().ToCryptographicException(); 393throw Marshal.GetLastPInvokeError().ToCryptographicException(); 455throw Marshal.GetLastPInvokeError().ToCryptographicException(); 460throw Marshal.GetLastPInvokeError().ToCryptographicException();
Internal\Cryptography\Pal\Windows\PkcsPalWindows.cs (3)
34throw Marshal.GetLastPInvokeError().ToCryptographicException(); 37throw Marshal.GetLastPInvokeError().ToCryptographicException(); 42throw Marshal.GetLastPInvokeError().ToCryptographicException();
Internal\Cryptography\Pal\Windows\PkcsPalWindows.Encrypt.cs (2)
48throw Marshal.GetLastPInvokeError().ToCryptographicException(); 123Exception e = Marshal.GetLastPInvokeError().ToCryptographicException();
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.CryptEncodeDecodeWrappers.cs (4)
33throw Marshal.GetLastPInvokeError().ToCryptographicException(); 39Exception e = Marshal.GetLastPInvokeError().ToCryptographicException(); 52throw Marshal.GetLastPInvokeError().ToCryptographicException(); 58throw Marshal.GetLastPInvokeError().ToCryptographicException();
System.Security.Cryptography.ProtectedData (1)
System\Security\Cryptography\ProtectedData.cs (1)
363int lastWin32Error = Marshal.GetLastPInvokeError();
System.Security.Principal.Windows (6)
System\Security\Principal\Win32.cs (3)
112ErrorCode = Marshal.GetLastPInvokeError(); 166return Marshal.GetLastPInvokeError(); 221return Marshal.GetLastPInvokeError();
System\Security\Principal\WindowsIdentity.cs (3)
272Marshal.GetLastPInvokeError() == Interop.Errors.ERROR_INVALID_HANDLE) 879hr = GetHRForWin32Error(Marshal.GetLastPInvokeError()); 919int dwErrorCode = Marshal.GetLastPInvokeError();
System.ServiceProcess.ServiceController (5)
System\ServiceProcess\ServiceController.cs (5)
198int lastError = Marshal.GetLastPInvokeError(); 312int lastError = Marshal.GetLastPInvokeError(); 391int lastError = Marshal.GetLastPInvokeError(); 581int lastError = Marshal.GetLastPInvokeError(); 612int lastError = Marshal.GetLastPInvokeError();
System.Threading.AccessControl (7)
src\runtime\src\libraries\Common\src\System\IO\Win32Marshal.cs (1)
19=> GetExceptionForWin32Error(Marshal.GetLastPInvokeError(), path);
System\Threading\EventWaitHandleAcl.cs (2)
57int errorCode = Marshal.GetLastPInvokeError(); 135int errorCode = Marshal.GetLastPInvokeError();
System\Threading\MutexAcl.cs (2)
43int errorCode = Marshal.GetLastPInvokeError(); 126int errorCode = Marshal.GetLastPInvokeError();
System\Threading\SemaphoreAcl.cs (2)
62int errorCode = Marshal.GetLastPInvokeError(); 141int errorCode = Marshal.GetLastPInvokeError();
System.Windows.Extensions (5)
System\Security\Cryptography\X509Certificates\X509Certificate2UI.cs (3)
81dwErrorCode = Marshal.GetLastPInvokeError(); 117Exception e = new CryptographicException(Marshal.GetLastPInvokeError()); 162dwErrorCode = Marshal.GetLastPInvokeError();
System\Security\Cryptography\X509Certificates\X509Utils.cs (2)
36Exception e = new CryptographicException(Marshal.GetLastPInvokeError()); 53throw new CryptographicException(Marshal.GetLastPInvokeError());