- for (i = 0; files[i]; i++) {
- const char *page_label;
- GFile *file;
- char *uri;
-
- file = g_file_new_for_commandline_arg (files[i]);
- uri = g_file_get_uri (file);
- g_object_unref (file);
-
- page_label = ev_page_label ? ev_page_label : "";
-
- if (!dbus_g_proxy_call (remote_object, "OpenURI", &error,
- G_TYPE_STRING, uri,
- dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE), args,
- G_TYPE_UINT, timestamp,
- G_TYPE_INVALID,
- G_TYPE_INVALID)) {
- g_warning ("%s", error->message);
- g_clear_error (&error);
- g_free (uri);
- continue;
- }
-
- g_free (uri);
- result = TRUE;
- }
-
- g_object_unref (remote_object);
- dbus_g_connection_unref (connection);
-
- gdk_notify_startup_complete ();
+ AttachConsole_t p_AttachConsole =
+ (AttachConsole_t) GetProcAddress (GetModuleHandle ("kernel32.dll"), "AttachConsole");