Jump to content

WinGetErrorInfo: Difference between revisions

From EDM2
WinGetErrorInfo created.
 
mNo edit summary
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== WinGetErrorInfo ==
; WinGetErrorInfo(anchorBlockHndl) :
Get detailed error information.
Get detailed error information.
===Syntax===
WinGetErrorInfo(anchorBlockHndl)


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


=== Constants ===
=== Constants ===
Line 11: Line 11:


=== Returns ===
=== Returns ===
* [[OS2 API:DataType:ERRINFO|ERRINFO]]
* [[ERRINFO]]
* 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 Convention ===
 
=== Calling conversion ===
[[Cdecl32]]
[[Cdecl32]]


=== 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 32: Line 28:


=== 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 ===
[[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

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.