Jump to content

WinTerminate: Difference between revisions

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


=== Parameters ===
=== Parameters ===
;HAB ''hab'':Handle of Anchor Block returned from WinInititalize.
;''hab'' ([[HAB]]) - input:Handle of Anchor Block returned from WinInititalize.
 
=== Returns ===
=== Returns ===
;BOOL ''rc''
;BOOL ''rc''

Revision as of 18:57, 10 April 2025

WinTerminate clean up after resouce allocated by WinInitialize function.

Syntax

WinTerminate( hab )

Parameters

hab (HAB) - input
Handle of Anchor Block returned from WinInititalize.

Returns

BOOL rc
TRUE   on success
FALSE  on error

Include Info

#define INCL_WIN

or

#include INCL_PM

or

#define INCL_WINDOWMGR
#include <os2.h>

Sample Code

 
int main()
{
   HAB hab;
   
   hab = WinInitialize( 0 );   
   ...
   WinTerminate( hab );
   return 0;
}

See Also