◄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 ♦