win 7 x64 trouble

Every time I create a program with masm and use the CreateFile api it always fails unless I use read access rights. Even some downloaded programs file when they hit CreateFile on my computer. I can usually get around it by using xp compatibility mode and the CreateFile is redirected to acgeneral.dll for legacy support and then it works. Administrator rights don't make a difference. Is my UAC messed up or do I need a manifest elevation file (if so what do I do for downloaded programs)?

Thanks for any help!

Don't mean to bump this thread but if it will help someone else then great. The problem was from my Internet Security Suite from Comodo. In the Defense+ settings under the Execution Control Settings tab I had "Treat unrecognizable files as Partially Limited" checked. So I unchecked and all is good.

This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.