Mercurial > dwindows
comparison win/dw.c @ 1861:c836603d3f14
Add dw_shutdown() function which does the same thing as dw_exit() ...
except it doesn't actually end the process. Useful for bindings
that are expecting to do their own cleanup after the script exits.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 01 Mar 2013 16:51:08 +0000 |
parents | 952a41463240 |
children | dc3260e1a915 |
comparison
equal
deleted
inserted
replaced
1860:02a23143334c | 1861:c836603d3f14 |
---|---|
11329 #endif | 11329 #endif |
11330 } | 11330 } |
11331 | 11331 |
11332 /* | 11332 /* |
11333 * Cleanly terminates a DW session, should be signal handler safe. | 11333 * Cleanly terminates a DW session, should be signal handler safe. |
11334 * Parameters: | 11334 */ |
11335 * exitcode: Exit code reported to the operating system. | 11335 void API dw_shutdown(void) |
11336 */ | |
11337 void API dw_exit(int exitcode) | |
11338 { | 11336 { |
11339 OleUninitialize(); | 11337 OleUninitialize(); |
11340 #ifdef AEROGLASS | 11338 #ifdef AEROGLASS |
11341 /* Free any in use libraries */ | 11339 /* Free any in use libraries */ |
11342 FreeLibrary(hdwm); | 11340 FreeLibrary(hdwm); |
11343 #endif | 11341 #endif |
11344 FreeLibrary(huxtheme); | 11342 FreeLibrary(huxtheme); |
11345 DestroyWindow(hwndTooltip); | 11343 DestroyWindow(hwndTooltip); |
11344 } | |
11345 | |
11346 /* | |
11347 * Cleanly terminates a DW session, should be signal handler safe. | |
11348 * Parameters: | |
11349 * exitcode: Exit code reported to the operating system. | |
11350 */ | |
11351 void API dw_exit(int exitcode) | |
11352 { | |
11353 dw_shutdown(); | |
11346 exit(exitcode); | 11354 exit(exitcode); |
11347 } | 11355 } |
11348 | 11356 |
11349 /* | 11357 /* |
11350 * Creates a splitbar window (widget) with given parameters. | 11358 * Creates a splitbar window (widget) with given parameters. |