Converts the specified NTSTATUS code to its equivalent system error code.
#Include <WinAPIEx.au3>
_WinAPI_NtStatusToDosError ( $iStatus )
$iStatus | The NTSTATUS code to be converted. |
Success | The system error code. ERROR_MR_MID_NOT_FOUND (317) is returned when the specified NTSTATUS code |
does not have a corresponding system error code. | |
失败: | 返回 0 并设置 @error 标志为非 0 值. |
在MSDN中搜索
#Include <WinAPIEx.au3>
Opt('MustDeclareVars', 1)
Global $Error = _WinAPI_NtStatusToDosError(0xC0000023) ; STATUS_BUFFER_TOO_SMALL
ConsoleWrite($Error & ' - ' & _WinAPI_GetErrorMessage($Error) & @CR)