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.