You ONLY declare functions YOU are supplying to the Compiler!

Did you write SetWindowPos and GetConsoleWindow functions?
If not, do NOT lie to the compiler that you are going to supply them.

Add the correct header to your source code and then link to the correct library (if a library is needed).

Tim S.