Upon termination of the application, the help instance should be ended using a WinDestroyHelpInstance() function call, as shown in Figure "WinDestroyHelpInstance() Function".
This function is invoked immediately after termination of the application's message processing routine, and prior to destroying the application's main window.