If you have a reason to make an app slightly less hackable, excluding the FindWindow() API from getting the handle of your app simply means generating a random string for the classname every time the app starts. Attached is a simple technique to do that.