43 references to GetLastPInvokeError
System.Formats.Tar (2)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
158
return ConvertErrorPlatformToPal(Marshal.
GetLastPInvokeError
());
163
return new ErrorInfo(Marshal.
GetLastPInvokeError
());
System.IO.Compression.ZipFile (2)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
158
return ConvertErrorPlatformToPal(Marshal.
GetLastPInvokeError
());
163
return new ErrorInfo(Marshal.
GetLastPInvokeError
());
System.IO.FileSystem.Watcher (2)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
158
return ConvertErrorPlatformToPal(Marshal.
GetLastPInvokeError
());
163
return new ErrorInfo(Marshal.
GetLastPInvokeError
());
System.IO.Ports (2)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
158
return ConvertErrorPlatformToPal(Marshal.
GetLastPInvokeError
());
163
return new ErrorInfo(Marshal.
GetLastPInvokeError
());
System.Net.HttpListener (1)
System\Net\HttpListenerException.cs (1)
14
public HttpListenerException() : base(Marshal.
GetLastPInvokeError
())
System.Net.Ping (2)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
158
return ConvertErrorPlatformToPal(Marshal.
GetLastPInvokeError
());
163
return new ErrorInfo(Marshal.
GetLastPInvokeError
());
System.Private.CoreLib (31)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
158
return ConvertErrorPlatformToPal(Marshal.
GetLastPInvokeError
());
163
return new ErrorInfo(Marshal.
GetLastPInvokeError
());
src\libraries\Common\src\Interop\Unix\System.Native\Interop.ReadLink.cs (1)
51
error = Marshal.
GetLastPInvokeError
();
src\libraries\Common\src\System\IO\Win32Marshal.cs (1)
19
=> GetExceptionForWin32Error(Marshal.
GetLastPInvokeError
(), path);
src\libraries\System.Private.CoreLib\src\System\ComponentModel\Win32Exception.cs (3)
26
public Win32Exception() : this(Marshal.
GetLastPInvokeError
())
48
public Win32Exception(string? message) : this(Marshal.
GetLastPInvokeError
(), message)
58
NativeErrorCode = Marshal.
GetLastPInvokeError
();
src\libraries\System.Private.CoreLib\src\System\Environment.Variables.Windows.cs (2)
23
if (length == 0 && Marshal.
GetLastPInvokeError
() == Interop.Errors.ERROR_ENVVAR_NOT_FOUND)
47
int errorCode = Marshal.
GetLastPInvokeError
();
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Nls.cs (3)
71
Debug.Assert(ret >= 0 || Marshal.
GetLastPInvokeError
() == Interop.Errors.ERROR_SUCCESS);
303
Debug.Assert(result >= 0 || Marshal.
GetLastPInvokeError
() == Interop.Errors.ERROR_SUCCESS);
509
if (Marshal.
GetLastPInvokeError
() == Interop.Errors.ERROR_INSUFFICIENT_BUFFER)
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.Nls.cs (1)
120
int lastError = Marshal.
GetLastPInvokeError
();
src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Nls.cs (4)
67
int lastError = Marshal.
GetLastPInvokeError
();
139
int lastError = Marshal.
GetLastPInvokeError
();
182
int lastError = Marshal.
GetLastPInvokeError
();
205
int lastError = Marshal.
GetLastPInvokeError
();
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CriticalHandle.cs (1)
149
int lastError = Marshal.
GetLastPInvokeError
();
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (3)
1156
int dwLastError =
GetLastPInvokeError
();
1262
return
GetLastPInvokeError
();
1271
return GetPInvokeErrorMessage(
GetLastPInvokeError
());
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NativeLibrary.cs (1)
263
throw new Win32Exception(Marshal.
GetLastPInvokeError
());
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeHandle.cs (2)
77
int lastError = Marshal.
GetLastPInvokeError
();
266
int lastError = Marshal.
GetLastPInvokeError
();
src\libraries\System.Private.CoreLib\src\System\Threading\EventWaitHandle.Windows.cs (2)
35
int errorCode = Marshal.
GetLastPInvokeError
();
84
errorCode = Marshal.
GetLastPInvokeError
();
src\libraries\System.Private.CoreLib\src\System\Threading\Semaphore.Windows.cs (2)
39
int errorCode = Marshal.
GetLastPInvokeError
();
92
errorCode = Marshal.
GetLastPInvokeError
();
src\System\Threading\Mutex.CoreCLR.Unix.cs (3)
28
int errorCode = Marshal.
GetLastPInvokeError
();
140
errorCode = Marshal.
GetLastPInvokeError
();
150
errorCode = mutexHandle.IsInvalid ? Marshal.
GetLastPInvokeError
() : Interop.Errors.ERROR_SUCCESS;
System.Security.Cryptography.ProtectedData (1)
System\Security\Cryptography\ProtectedData.cs (1)
363
int lastWin32Error = Marshal.
GetLastPInvokeError
();