Gracefully shutting down your OEM application

Sometimes you need to shut down the running OEM application from your own modules. Typically during a runtime license check that fails.
There’s no API for that, but it’s fairly simple:
Here’s how you shut down OEM gracefully from C++:

    acedAlert(_T("Shutting down CoolCAD!"));

    ::PostMessage(adsw_acadMainWnd(), WM_CLOSE, 0, 0);

The user will be prompted to save his/her work before shut down.

1 Like

I’m unsure, but maybe @paavo could answer your question?

wrong topic, Gabe?
I posted a reply in another topic. Thanks.

1 Like