If there could be an identifier to return the hWnd for the mIRC main window (...and do so correctly, even if there are multipul instances being run) that would really be helpful for use with many of the DLLs out there for mIRC
There already is $window(-2).hwnd. This is of no use for DLLs though, as they already get the main window's handle in the mWnd parameter to each call (as well as via the LOADINFO structure) automatically anyway.