I just installed Visual Studio 2010 and converted a 2008 C++ Win32 project to 2010, but encountered a bug that prevent my application from being debugged. When I start debugging, I get "The procedure entry point K32EnumProcessModules could not be located in the dynamic link library KERNEL32.dll". I haven't had this error when compiling with 2008.
Included header: <Psapi.h>
C++ Linker Additional Dependencies: "Psapi.lib"
I just think the compiler is linking the EnumProcessModule to the wrong library. This function is found in Kernel32.dll but on Windows 7 only. It should link to Psaspi.