Jump to content

WinFreeErrorInfo: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
== WinFreeErrorInfo ==
== WinFreeErrorInfo ==
; WinFreeErrorInfo(errInfo) : Releases the memory occupied by the [[OS2 API:DataType:ERRINFO|ERRINFO]] type that was allocated by [[OS2 API:WinGetErrorInfo|WinGetErrorInfo]].
; WinFreeErrorInfo(errInfo) : Releases the memory occupied by the [[ERRINFO]] type that was allocated by [[WinGetErrorInfo]].


=== Parameters ===
=== Parameters ===
; errInfo - [[OS2 API:DataType:ERRINFO|ERRINFO]] - input : Memory block to be released.
; errInfo - [[ERRINFO]] - input : Memory block to be released.


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


=== Returns ===
=== Returns ===
Returns [[OS2 API:DataType:BOOL|BOOL]] with value of:
Returns [[BOOL]] with value of:
* [[OS2 API:Constant:TRUE|TRUE]]
*[[TRUE]]
* [[OS2 API:Constant:FALSE|FALSE]]
*[[FALSE]]
 
=== Module ===


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


=== Calling conversion ===
=== Calling conversion ===
Line 24: Line 20:


=== Example Code ===
=== Example Code ===
  [[OS2 API:DataType:ERRINFO|ERRINFO]] errorInfo;
  ERRINFO  errorInfo;
  [[OS2 API:DataType:BOOL|BOOL]]      rc;
  BOOL     rc;
  ...
  ...
  rc = WinFreeErrorInfo(errorInfo);
  rc = WinFreeErrorInfo(errorInfo);
Line 31: Line 27:


=== Related Functions ===
=== Related Functions ===
[[OS2 API:WinGetErrorInfo|WinGetErrorInfo]]
*[[WinGetErrorInfo]]
[[OS2 API:WinGetLastError|WinGetLastError]]
*[[WinGetLastError]]
 
=== Notes ===
 
=== OS Version Introduced ===
 
 
 
[[OS2_API | Back to OS/2 API]]
 


[[Category:The OS/2 API Project]]
[[Category:Win]]

Revision as of 19:11, 8 December 2016

WinFreeErrorInfo

WinFreeErrorInfo(errInfo)
Releases the memory occupied by the ERRINFO type that was allocated by WinGetErrorInfo.

Parameters

errInfo - ERRINFO - input
Memory block to be released.

Constants

None

Returns

Returns BOOL with value of:

Define (C/C++)

INCL_WINERROR or INCL_WIN or INCL_PM

Calling conversion

Cdecl32

Example Code

ERRINFO  errorInfo;
BOOL     rc;
...
rc = WinFreeErrorInfo(errorInfo);
...

Related Functions