If you're talking about windows external to your application, then you cant. You have to use API...