nsWindowsShellService.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef nswindowsshellservice_h____
  6. #define nswindowsshellservice_h____
  7. #include "nscore.h"
  8. #include "nsStringAPI.h"
  9. #include "nsIWindowsShellService.h"
  10. #include "nsITimer.h"
  11. #include <windows.h>
  12. #include <ole2.h>
  13. class nsWindowsShellService : public nsIWindowsShellService
  14. {
  15. virtual ~nsWindowsShellService();
  16. public:
  17. nsWindowsShellService();
  18. NS_DECL_ISUPPORTS
  19. NS_DECL_NSISHELLSERVICE
  20. NS_DECL_NSIWINDOWSSHELLSERVICE
  21. protected:
  22. bool IsDefaultBrowserVista(bool aCheckAllTypes, bool* aIsDefaultBrowser);
  23. nsresult LaunchControlPanelDefaultsSelectionUI();
  24. nsresult LaunchControlPanelDefaultPrograms();
  25. nsresult LaunchModernSettingsDialogDefaultApps();
  26. nsresult InvokeHTTPOpenAsVerb();
  27. nsresult LaunchHTTPHandlerPane();
  28. };
  29. #endif // nswindowsshellservice_h____