A program can just activate mIRC and send keystrokes to it. If they wanted to they could open the options and enable dde and sendmessage, not that they'd need to. Even if there were no way to interact with mIRC directly, a program could kill the process and edit mirc.ini to enable those options.