public static bool AttachConsole(int pid) { switch (PlatformIdentifier) { case PlatformID.Win32NT: return Win32AttachConsole(pid); default: return true; } }