Your project isn't linking the required Windows import library, so go to project properties, linker, input and in there remove the $(NoInherit) from the Additional Dependencies(and if you use VS2010 then put "user32.lib" in that box)
Problem solved, imported user32.lib!