its just for my own use ... im having issue making it work as i still dont know enough yet about dlls and c++ ive spent the last couple days reading up on everything u and codemastr are telling me. i tried your method and am now trying to figure out how to actually send the command alias i want it to pass in my mirc ..... basically ive made an alias that refresshes my list of open windows in the MDI in a treeview list. my problem with doing it in mirc scripting is it doesnt always send the alias on close of dcc windows. it sends it after the dcc has finished..... thats why i need to do it another way. im still new to this dll stuff but im hoping to learn enough to be able to make the dll function just to do this one thing. i dont ever plan on releasing it because the script is my own personal script. anything i share with anyone else never contains the treeview listing of windows. ive tried looking into codemastrs idea of it being able to be done differently in xp since thats what i do use.again im still at a very basic stage in this learning it. its probably more than im gonna be able to do immediatly but im going to keep taking stabs at it. i do have visual studio 2002 thats how im working with the cpp file and then how i plan to compile it. once i figure out a correct method. all of your help is greatly appreciated. I think in the past week ive read more tutorials than i can remember.