函数参考


_WinAPI_NtStatusToDosError

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 值.

注意/说明

None

相关

详情参考

在MSDN中搜索


示例/演示


#Include <WinAPIEx.au3>

Opt('MustDeclareVars', 1)

Global $Error = _WinAPI_NtStatusToDosError(0xC0000023) ; STATUS_BUFFER_TOO_SMALL

ConsoleWrite($Error & ' - ' & _WinAPI_GetErrorMessage($Error) & @CR)