[System] Use GZipStream from corefx
[mono-project.git] / mono / metadata / console-win32-uwp.c
blob938ef80b171f844072f7f031150e9fcb2c9d2a72
1 /*
2 * console-win32-uwp.c: UWP console support for Mono.
4 * Copyright 2016 Microsoft
5 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
6 */
7 #include <config.h>
8 #include <glib.h>
9 #include "mono/utils/mono-compiler.h"
11 #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
12 #include <windows.h>
13 #include "mono/metadata/console-win32-internals.h"
15 MonoBoolean
16 ves_icall_System_ConsoleDriver_Isatty (HANDLE handle)
18 MonoError mono_error;
19 mono_error_init (&mono_error);
21 g_unsupported_api ("Console");
23 mono_error_set_not_supported (&mono_error, G_UNSUPPORTED_API, "Console");
24 mono_error_set_pending_exception (&mono_error);
26 SetLastError (ERROR_NOT_SUPPORTED);
28 return FALSE;
31 MonoBoolean
32 ves_icall_System_ConsoleDriver_SetEcho (MonoBoolean want_echo)
34 MonoError mono_error;
35 mono_error_init (&mono_error);
37 g_unsupported_api ("Console");
39 mono_error_set_not_supported (&mono_error, G_UNSUPPORTED_API, "Console");
40 mono_error_set_pending_exception (&mono_error);
42 SetLastError (ERROR_NOT_SUPPORTED);
44 return FALSE;
47 MonoBoolean
48 ves_icall_System_ConsoleDriver_SetBreak (MonoBoolean want_break)
50 MonoError mono_error;
51 mono_error_init (&mono_error);
53 g_unsupported_api ("Console");
55 mono_error_set_not_supported (&mono_error, G_UNSUPPORTED_API, "Console");
56 mono_error_set_pending_exception (&mono_error);
58 SetLastError (ERROR_NOT_SUPPORTED);
60 return FALSE;
63 gint32
64 ves_icall_System_ConsoleDriver_InternalKeyAvailable (gint32 timeout)
66 MonoError mono_error;
67 mono_error_init (&mono_error);
69 g_unsupported_api ("Console");
71 mono_error_set_not_supported (&mono_error, G_UNSUPPORTED_API, "Console");
72 mono_error_set_pending_exception (&mono_error);
74 SetLastError (ERROR_NOT_SUPPORTED);
76 return FALSE;
79 MonoBoolean
80 ves_icall_System_ConsoleDriver_TtySetup (MonoString *keypad, MonoString *teardown, MonoArray **control_chars, int **size)
82 MonoError mono_error;
83 mono_error_init (&mono_error);
85 g_unsupported_api ("Console");
87 mono_error_set_not_supported (&mono_error, G_UNSUPPORTED_API, "Console");
88 mono_error_set_pending_exception (&mono_error);
90 SetLastError (ERROR_NOT_SUPPORTED);
92 return FALSE;
95 #else /* G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) */
97 MONO_EMPTY_SOURCE_FILE (console_win32_uwp);
98 #endif /* G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) */