WinGetErrorInfo: Difference between revisions
Appearance
m Martini moved page OS2 API:WinGetErrorInfo to OS2 API:PMI:WinGetErrorInfo |
mNo edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== | Get detailed error information. | ||
===Syntax=== | |||
WinGetErrorInfo(anchorBlockHndl) | |||
=== Parameters === | === Parameters === | ||
; anchorBlockHndl - [[ | ; anchorBlockHndl - [[HAB]] - input : Anchor block handle. | ||
=== Constants === | === Constants === | ||
Line 9: | Line 11: | ||
=== Returns === | === Returns === | ||
* [[ | * [[ERRINFO]] | ||
* [[ | * [[NULL]] | ||
=== Define (C/C++) === | === Define (C/C++) === | ||
INCL_WINERRORS or INCL_WIN or INCL_PM | INCL_WINERRORS or INCL_WIN or INCL_PM | ||
=== Calling Convention === | |||
=== Calling | |||
[[Cdecl32]] | [[Cdecl32]] | ||
=== Example Code === | === Example Code === | ||
HAB anchorBlockHndl; | |||
ERRINFO errinfo; | |||
... | ... | ||
errinfo = WinGetErrorInfo(anchorBlockHndl); | errinfo = WinGetErrorInfo(anchorBlockHndl); | ||
Line 30: | Line 28: | ||
=== Related Functions === | === Related Functions === | ||
[[ | *[[WinFreeErrorInfo]] | ||
[[ | *[[WinGetLastError]] | ||
=== Notes === | === Notes === | ||
[[ | [[WinFreeErrorInfo]] must be called to release the memory allocated by '''WinGetErrorInfo''' for the [[ERRINFO]]. | ||
[[Category: | [[Category:Win]] |
Latest revision as of 05:09, 20 May 2018
Get detailed error information.
Syntax
WinGetErrorInfo(anchorBlockHndl)
Parameters
- anchorBlockHndl - HAB - input
- Anchor block handle.
Constants
None
Returns
Define (C/C++)
INCL_WINERRORS or INCL_WIN or INCL_PM
Calling Convention
Example Code
HAB anchorBlockHndl; ERRINFO errinfo; ... errinfo = WinGetErrorInfo(anchorBlockHndl); ...
Related Functions
Notes
WinFreeErrorInfo must be called to release the memory allocated by WinGetErrorInfo for the ERRINFO.