Jump to content

WinGetErrorInfo: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
Line 3: Line 3:


=== Parameters ===
=== Parameters ===
; anchorBlockHndl - [[OS2 API:DataType:HAB|HAB]] - input : Anchor block handle.
; anchorBlockHndl - [[HAB]] - input : Anchor block handle.


=== Constants ===
=== Constants ===
Line 9: Line 9:


=== Returns ===
=== Returns ===
* [[OS2 API:DataType:ERRINFO|ERRINFO]]
* [[ERRINFO]]
* [[OS2 API:Constant:NULL|NULL]]
* [[NULL]]
 
=== Module ===


=== Define (C/C++) ===
=== Define (C/C++) ===
INCL_WINERRORS or INCL_WIN or INCL_PM
INCL_WINERRORS or INCL_WIN or INCL_PM
=== Export name/Ordinal ===


=== Calling conversion ===
=== Calling conversion ===
Line 23: Line 19:


=== Example Code ===
=== Example Code ===
  [[OS2 API:DataType:HAB|HAB]]  anchorBlockHndl;
  HAB     anchorBlockHndl;
  [[OS2 API:DataType:ERRINFO|ERRINFO]] errinfo;
  ERRINFO errinfo;
  ...
  ...
  errinfo = WinGetErrorInfo(anchorBlockHndl);
  errinfo = WinGetErrorInfo(anchorBlockHndl);
Line 30: Line 26:


=== Related Functions ===
=== Related Functions ===
[[OS2 API:WinFreeErrorInfo|WinFreeErrorInfo]]
*[[WinFreeErrorInfo]]
[[OS2 API:WinGetLastError|WinGetLastError]]
*[[WinGetLastError]]


=== Notes ===
=== Notes ===
[[OS2 API:WinFreeErrorInfo|WinFreeErrorInfo]] must be called to release the memory allocated by [[OS2 API:WinGetErrorInfo|WinGetErrorInfo]] for the [[OS2 API:DataType:ERRINFO|ERRINFO]].
[[WinFreeErrorInfo]] must be called to release the memory allocated by '''WinGetErrorInfo''' for the [[ERRINFO]].
 
=== OS Version Introduced ===
 
[[OS2_API | Back to OS/2 API]]
 


[[Category:The OS/2 API Project]]
[[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

Cdecl32

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.