MSDN says i can use this function
GetConsoleWindow()

but VC++ says its an undeclared identifier (i've already added windows.h)....maybe compatability problem? (xp pro here)