win12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WinGetErrorInfo (1.2)
Function Group                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINERRORS
 
PERRINFO WinGetErrorInfo(hab)
HAB hab;    /* handle of the anchor block */
 
The WinGetErrorInfo function returns detailed error information.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hab        Identifies the anchor block.
 
Return Value
 
The return value points to an ERRINFO structure that contains information
about the previous error code for the current thread; or it is NULL if no
error information is available.
 
Comments
 
This function allocates a single private segment to contain the ERRINFO
structure. All pointers to string fields within ERRINFO are offsets to
memory within that segment.
 
The memory allocated by this function is not freed until the returned
pointer is passed to the WinFreeErrorInfo function.
 
WinGetErrorInfo does not release saved error information. Consecutive calls
to this function return the same information.
 
See Also
 
WinFreeErrorInfo, WinGetLastError, ERRINFO