I am not seeing any of this approaches work in multithreaded environments in PRODUCTION. it does not find exact match for class name or match for other flags. how to use all this code in multithreaded environment while different threads calls MessageBox window?