28 references to Errors
System.Private.CoreLib (28)
src\libraries\System.Private.CoreLib\src\System\Environment.Variables.Windows.cs (5)
23
if (length == 0 && Marshal.GetLastPInvokeError() == Interop.
Errors
.ERROR_ENVVAR_NOT_FOUND)
50
case Interop.
Errors
.ERROR_ENVVAR_NOT_FOUND:
54
case Interop.
Errors
.ERROR_FILENAME_EXCED_RANGE:
59
case Interop.
Errors
.ERROR_NOT_ENOUGH_MEMORY:
60
case Interop.
Errors
.ERROR_NO_SYSTEM_RESOURCES:
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Nls.cs (3)
71
Debug.Assert(ret >= 0 || Marshal.GetLastPInvokeError() == Interop.
Errors
.ERROR_SUCCESS);
290
Debug.Assert(result >= 0 || Marshal.GetLastPInvokeError() == Interop.
Errors
.ERROR_SUCCESS);
459
if (Marshal.GetLastPInvokeError() == Interop.
Errors
.ERROR_INSUFFICIENT_BUFFER)
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.Nls.cs (1)
177
lastError == Interop.
Errors
.ERROR_INVALID_NAME ? SR.Argument_IdnIllegalName :
src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Nls.cs (18)
71
case Interop.
Errors
.ERROR_SUCCESS:
78
case Interop.
Errors
.ERROR_INSUFFICIENT_BUFFER:
92
case Interop.
Errors
.ERROR_INVALID_PARAMETER:
93
case Interop.
Errors
.ERROR_NO_UNICODE_TRANSLATION:
97
case Interop.
Errors
.ERROR_NOT_ENOUGH_MEMORY:
142
case Interop.
Errors
.ERROR_SUCCESS:
147
case Interop.
Errors
.ERROR_INSUFFICIENT_BUFFER:
151
case Interop.
Errors
.ERROR_INVALID_PARAMETER:
152
case Interop.
Errors
.ERROR_NO_UNICODE_TRANSLATION:
156
case Interop.
Errors
.ERROR_NOT_ENOUGH_MEMORY:
185
case Interop.
Errors
.ERROR_SUCCESS:
188
case Interop.
Errors
.ERROR_INVALID_PARAMETER:
189
case Interop.
Errors
.ERROR_NO_UNICODE_TRANSLATION:
193
case Interop.
Errors
.ERROR_NOT_ENOUGH_MEMORY:
208
case Interop.
Errors
.ERROR_SUCCESS:
211
case Interop.
Errors
.ERROR_INVALID_PARAMETER:
212
case Interop.
Errors
.ERROR_NO_UNICODE_TRANSLATION:
215
case Interop.
Errors
.ERROR_NOT_ENOUGH_MEMORY:
src\libraries\System.Private.CoreLib\src\System\IO\Path.Unix.cs (1)
19
bool result = Interop.Sys.LStat(fullPath, out Interop.Sys.FileStatus fileInfo) == Interop.
Errors
.ERROR_SUCCESS;