[mini] Use C++ linker iff building C++ that needs the C++ runtime (#12266)
[mono-project.git] / mono / metadata / console-win32.c
blobba885cec0f0325467c6d4e7a0e248f7f44ee488a
1 /**
2 * \file
3 * ConsoleDriver internal calls for Win32
5 * Author:
6 * Gonzalo Paniagua Javier (gonzalo@ximian.com)
8 * Copyright (C) 2005-2009 Novell, Inc. (http://www.novell.com)
9 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
12 #include <config.h>
13 #include <glib.h>
14 #include <stdio.h>
15 #include <string.h>
16 #include <fcntl.h>
17 #include <errno.h>
18 #include <signal.h>
19 #include <sys/types.h>
20 #ifdef HAVE_SYS_TIME_H
21 #include <sys/time.h>
22 #endif
23 #include <mono/metadata/appdomain.h>
24 #include <mono/metadata/object-internals.h>
25 #include <mono/metadata/class-internals.h>
26 #include <mono/metadata/domain-internals.h>
27 #include <mono/metadata/gc-internals.h>
28 #include <mono/metadata/metadata.h>
29 #include <mono/metadata/console-io.h>
30 #include <mono/metadata/exception.h>
31 #include "icall-decl.h"
33 void
34 mono_console_init (void)
38 void
39 mono_console_handle_async_ops (void)
43 #if G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT)
44 MonoBoolean
45 ves_icall_System_ConsoleDriver_Isatty (HANDLE handle, MonoError* error)
47 DWORD mode;
48 return GetConsoleMode (handle, &mode) != 0;
51 MonoBoolean
52 ves_icall_System_ConsoleDriver_SetEcho (MonoBoolean want_echo, MonoError* error)
54 return FALSE;
57 MonoBoolean
58 ves_icall_System_ConsoleDriver_SetBreak (MonoBoolean want_break, MonoError* error)
60 return FALSE;
63 gint32
64 ves_icall_System_ConsoleDriver_InternalKeyAvailable (gint32 timeout, MonoError* error)
66 return FALSE;
69 MonoBoolean
70 ves_icall_System_ConsoleDriver_TtySetup (MonoStringHandle keypad, MonoStringHandle teardown, MonoArrayHandleOut control_chars, int **size, MonoError* error)
72 return FALSE;
74 #endif /* G_HAVE_API_SUPPORT(HAVE_CLASSIC_WINAPI_SUPPORT) */