Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/browser/components/shell/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  WindowsDefaultBrowser.h

  Sprache: C
 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


/**
 * This file exists so that LaunchModernSettingsDialogDefaultApps can be called
 * without linking to libxul.
 */


#ifndef windowsdefaultbrowser_h_
#define windowsdefaultbrowser_h_

#include <utility>
#include <windows.h>

#include "mozilla/RefPtr.h"
#include "mozilla/UniquePtr.h"

struct IUIAutomationElement;
using UIElement = RefPtr<IUIAutomationElement>;
using UIWindowElement = std::pair<HWND, UIElement>;

bool GetAppRegName(mozilla::UniquePtr<wchar_t[]>& aAppRegName);
bool LaunchControlPanelDefaultPrograms();
bool LaunchModernSettingsDialogDefaultApps();

/*
 * Focus an element on a window.
 *
 * @param aWindow  Window that contains aElement.
 * @param aElement Element to focus.
 */

void FocusElement(HWND aWindow, const UIElement& aElement);

/*
 * Find the set default browser button in Windows Settings.
 *
 * Open Windows Settings beforehand via LaunchModernSettingsDialogDefaultApps().
 *
 * @return The window and button element, or null values on failure.
 */

[[nodiscard]] UIWindowElement FindSetDefaultBrowserButton();

#endif  // windowsdefaultbrowser_h_

Messung V0.5 in Prozent
C=94 H=90 G=91

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.