Article # 141, added by Geoworks, historical record
| first | previous | index | next | last |

Where to send MSG_META_QUIT




Always send MSG_META_QUIT to the application object. The application
object will then initiate the application shutdown sequence by sending 
MSG_META_QUIT--with a QuitLevel parameter--to the process and to objects 
on the MGCNLT_ACTIVE_LIST (gcn list).

If you send MSG_META_QUIT to the process object you will get a
UI_PROCESS_INVALID_QUIT_LEVEL error. This occurs because you aren't
passing a valid QuitLevel in register DX. Since the application object
is designed to properly handle MSG_META_QUIT, you should avoid ever 
sending MSG_META_QUIT to the process object.

See the MSG_META_QUIT comments in Include\metaC.def for more detail
about the operation of MSG_META_QUIT.