Are you compiling your program to 32 bit? When a 32 bit program is run on a 64 bit Windows OS, then attempts to access certain system folders are redirected to their 32 bit counterparts.

"C:\Windows\System32\notepad.exe" would be redirected to "C:\Windows\SysWOW64\notepad.exe" and "C:\Windows\System32\SnippingTool.exe" would be redirected to "C:\Windows\SysWOW64\SnippingTool.exe".

If you check in the C:\Windows\SysWOW64 folder you will see that notepad.exe is present but SnippingTool.exe is not there.

There's a lot of information about this on the Net. Search for "SysWOW64" or "windows 7 filesystem redirection". A couple of quick examples:

http://www.samlogic.net/articles/32-...6-syswow64.htm
http://blogs.sepago.de/e/helge/2008/...fferent-part-7
http://msdn.microsoft.com/en-gb/libr...=vs.85%29.aspx