SetWindowPlacement not working on Windows Vista

Using SetWindowPlacement, I am setting the position of an IE browser. I tested the code on Windows XP and Windows 7 and it works, but when I tried it on Windows Vista, an error code 5 (Access is denied) is returned.



Does anybody know any workaround? Or is there any other method that has the same functionality as SetWindowPlacement that works on Vista?