WinGetErrorInfo: Difference between revisions
Appearance
m Martini moved page OS2 API:WinGetErrorInfo to OS2 API:PMI:WinGetErrorInfo |
mNo edit summary |
||
Line 3: | Line 3: | ||
=== Parameters === | === Parameters === | ||
; anchorBlockHndl - [[ | ; anchorBlockHndl - [[HAB]] - input : Anchor block handle. | ||
=== Constants === | === Constants === | ||
Line 9: | Line 9: | ||
=== 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 conversion === | === Calling conversion === | ||
Line 23: | Line 19: | ||
=== Example Code === | === Example Code === | ||
HAB anchorBlockHndl; | |||
ERRINFO errinfo; | |||
... | ... | ||
errinfo = WinGetErrorInfo(anchorBlockHndl); | errinfo = WinGetErrorInfo(anchorBlockHndl); | ||
Line 30: | Line 26: | ||
=== 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]] |
Revision as of 19:08, 8 December 2016
WinGetErrorInfo
- WinGetErrorInfo(anchorBlockHndl)
- Get detailed error information.
Parameters
- anchorBlockHndl - HAB - input
- Anchor block handle.
Constants
None
Returns
Define (C/C++)
INCL_WINERRORS or INCL_WIN or INCL_PM
Calling conversion
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.