WinGetLastError

Get the error code which was set by the failure of a Presentation Manager function.

Syntax
WinGetLastError(anchorHndl)

Parameters

 * anchorHndl - HAB - input : The anchor block handle.

Constants
Severity codes defined:
 * SEVERITY_NOERROR
 * SEVERITY_WARNING
 * SEVERITY_ERROR
 * SEVERITY_SEVERE
 * SEVERITY_UNRECOVERABLE

Returns
Returns ERRORID:

The returned error code is a 32-bit value. The high order 16 bits is a severity code. The low order 16 bits is the error code.

Define (C/C++)
INCL_WINERRORS or INCL_PM or INCL_WIN

Calling Convention
Cdecl32

Example Code
HAB    anchorHndl; ERRORID rc; ... rc = WinGetLastError(anchorHndl); ...

Related Functions

 * WinFreeErrorInfo
 * WinGetErrorInfo