to make things better for injectbase_window_emulation.cpp