Quote Originally Posted by Donotalo
usecase:
my program will be one of the startup process. so after logging in, it will not allow any other program to be foreground program. it will ask for a password. a valid password will close the window.
If your window imitates the appearance of the login dialog box that's the perfect tool to steal passwords. This is not a hacker forum.