Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

SetWindowPos is not working on Vista and Windoes 7

I am writing a native code in C to launch internet explorer and then disable task switching (alt+tab, windows key and alt+f4 are disabled). Also, the browser's z-order is set to the maximum so that it always remains on top by using SetWindowPos() api call in Windows api. The code works perfect on XP but on Vista and 7, the only the task switching is disabled (alt_tab, windows key , alt_f4) but the browsers z-order is not set to max. I am able to bring other windows on top of the browser after I click ctrl_alt_del to open the task manager. This works fine in XP but not in windows 7 and vista.

Any thoughts on why this is happening?
Sign In or Register to comment.