Jump to content

WinTerminate

From EDM2
Revision as of 18:00, 17 May 2016 by Martini (talk | contribs) (Created page with "=== Syntax === rc = WinTerminate( ''hab'' ) === Parameters === HAB ''hab'' Handle of Anchor Block returned from WinInititalize. === Returns === <pre> BOOL rc TR...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Syntax

rc = WinTerminate( hab )


Parameters

 HAB hab 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>


Usage Explanation

WinTerminate clean up after resouce allocated by WinInitialize function.


Relevant Structures

Gotchas

Sample Code

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

See Also

PMI:WinInitialize