Quote:
Originally posted by Cimperiali
a message to quit can be sent to all applications on powerdown if you do not use the EWX_FORCE flag.
If your app is able to save before quit without ask user
interactivity, it should be able to avoid lost of data. But you're
playing with fiire, here, and I do not know the exact answer.
But an idea may be:
you could post a quit message to your running app (or even write a particular record on db your app can check), wait for the
app to close (ie: searching its window if any, or making it write a
small file you can read, and when you read you know it closed
connections to db, then delete that file, or searching a particular
record in a table....) and then powerdown
isn't that a bit complicated for something so simple..