3 * UWP icall support for Mono.
5 * Copyright 2016 Microsoft
6 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
10 #include "mono/utils/mono-compiler.h"
12 #if G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT)
14 #include "mono/metadata/icall-windows-internals.h"
17 mono_icall_get_machine_name (MonoError *error)
19 g_unsupported_api ("GetComputerName");
20 return mono_string_new_handle (mono_domain_get (), "mono", error);
24 mono_icall_get_windows_folder_path (int folder, MonoError *error)
27 g_unsupported_api ("SHGetFolderPath");
28 return mono_string_new_handle (mono_domain_get (), "", error);
32 mono_icall_get_logical_drives (void)
35 error_init (&mono_error);
37 g_unsupported_api ("GetLogicalDriveStrings");
39 mono_error_set_not_supported (&mono_error, G_UNSUPPORTED_API, "GetLogicalDriveStrings");
40 mono_error_set_pending_exception (&mono_error);
42 SetLastError (ERROR_NOT_SUPPORTED);
48 mono_icall_broadcast_setting_change (MonoError *error)
52 g_unsupported_api ("SendMessageTimeout");
54 mono_error_set_not_supported (error, G_UNSUPPORTED_API, "SendMessageTimeout");
56 SetLastError (ERROR_NOT_SUPPORTED);
62 mono_icall_drive_info_get_drive_type (MonoString *root_path_name)
65 error_init (&mono_error);
67 g_unsupported_api ("GetDriveType");
69 mono_error_set_not_supported (&mono_error, G_UNSUPPORTED_API, "GetDriveType");
70 mono_error_set_pending_exception (&mono_error);
76 mono_icall_wait_for_input_idle (gpointer handle, gint32 milliseconds)
79 error_init (&mono_error);
81 g_unsupported_api ("WaitForInputIdle");
83 mono_error_set_not_supported (&mono_error, G_UNSUPPORTED_API, "WaitForInputIdle");
84 mono_error_set_pending_exception (&mono_error);
89 #else /* G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) */
91 MONO_EMPTY_SOURCE_FILE (icall_windows_uwp);
92 #endif /* G_HAVE_API_SUPPORT(HAVE_UWP_WINAPI_SUPPORT) */