Well it has something to do with your system setup.
I know if you are editing the registry or any important windows settings with an executable, you need to set UAC controls for Windows Vista or Windows 7.
On VS2010, this is done through the project properties under:
"Configuration Properties > Linker > Manifest File > UAC Execution Level"