Edit

Share via


RestoreLastError function (errhandlingapi.h)

Restores the last-error code for the calling thread.

Syntax

VOID RestoreLastError(
  DWORD dwErrCode
);

Parameters

dwErrCode

The last-error code for the thread.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows XP
Minimum supported server Windows Server 2003
Header errhandlingapi.h
Library kernel32.Lib
DLL api-ms-win-core-errorhandling-l1-1-1.dll