cmd窗口,知道窗口hwnd可用 GetWindowThreadProcessId(hwnd, &dwID) ;查进程ID,
反过来,知道cmd控制台进程ID怎么查HWND(FindWindow不行,因为有多个cmd窗口)