I have written two applications A and B (both Win32 apps) running on Windows 8.1. Application A has message box pop up at many places with the Topmost flag. In application B, i want to prevent application A dialog boxes to come in front of it while running. I figured out that there is LockSetForegroundWindow API which can disable other processes to set their windows in the foreground. But it does not seems to work in my case. I am not sure what i am doing wrong here.
Is there a way to achieve this?