Managed to get hwnd to visual studio window. Just need to postion console relative to visual studio instance now.