RestoreLastError 函数 (errhandlingapi.h)

还原调用线程的最后一个错误代码。

Syntax

VOID RestoreLastError(
  DWORD dwErrCode
);

参数

dwErrCode

线程的最后错误代码。

返回值

None

要求

Requirement 价值
最低支持的客户端 Windows XP
支持的最低服务器 Windows Server 2003
Header errhandlingapi.h
Library kernel32。自由
DLL api-ms-win-core-errorhandling-l1-1-1.dll