WinTerminate: Difference between revisions
Appearance
m Ak120 moved page OS2 API:PMI:WinTerminate to WinTerminate |
mNo edit summary |
||
Line 1: | Line 1: | ||
'''WinTerminate''' clean up after resouce allocated by [[WinInitialize]] function. | |||
=== Syntax === | === Syntax === | ||
rc = WinTerminate( ''hab'' ) | rc = WinTerminate( ''hab'' ) | ||
=== Parameters === | === Parameters === | ||
;HAB ''hab'':Handle of Anchor Block returned from WinInititalize. | |||
=== Returns === | === Returns === | ||
BOOL rc | |||
BOOL rc | |||
TRUE on success | TRUE on success | ||
FALSE on error | FALSE on error | ||
=== Include Info === | === Include Info === | ||
#define INCL_WIN | #define INCL_WIN | ||
or | or | ||
Line 24: | Line 18: | ||
or | or | ||
#define INCL_WINDOWMGR | #define INCL_WINDOWMGR | ||
#include | #include <os2.h> | ||
=== Sample Code === | === Sample Code === | ||
<pre> | <pre> | ||
Line 42: | Line 26: | ||
HAB hab; | HAB hab; | ||
hab = WinInitialize( 0 ); | hab = WinInitialize( 0 ); | ||
... | ... | ||
WinTerminate( hab ); | WinTerminate( hab ); | ||
return 0; | return 0; | ||
} | } | ||
</pre> | </pre> | ||
=== See Also === | === See Also === | ||
[[ | *[[WinInitialize]] | ||
[[Category: | [[Category:Win]] |
Revision as of 09:07, 6 January 2017
WinTerminate clean up after resouce allocated by WinInitialize function.
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>
Sample Code
int main() { HAB hab; hab = WinInitialize( 0 ); ... WinTerminate( hab ); return 0; }