nsIWindowsShellService 编辑

browser/components/shell/public/nsIWindowsShellService.idlScriptable Please add a summary to this article. Inherits from: nsIShellService Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)

Method overview

string getRegistryEntry(in long aHKeyConstant, in string aSubKeyName, in string aValueName); Obsolete since Gecko 1.8
void restoreFileSettings(in boolean aForAllUsers); Obsolete since Gecko 1.9
void shortcutMaintenance();

Attributes

AttributeTypeDescription
desktopBackgroundColorunsigned longThe desktop background color, visible when no background image is used, or if the background image is centered and does not fill the entire screen. A rgb value, where (r << 24 | g << 16 | b) Obsolete since Gecko 1.8
unreadMailCountunsigned longThe number of unread mail messages for the current user. Read only.

Constants

Valid starting keys for the Windows Registry.

ConstantValueDescription
HKCR0HKEY_CLASSES_ROOT. Obsolete since Gecko 1.8
HKCC1HKEY_CURRENT_CONFIG. Obsolete since Gecko 1.8
HKCU2HKEY_CURRENT_USER. Obsolete since Gecko 1.8
HKLM3HKEY_LOCAL_MACHINE. Obsolete since Gecko 1.8
HKU4HKEY_USERS. Obsolete since Gecko 1.8

Methods

getRegistryEntry()

Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0)

Retrieves a Windows Registry entry value.

string getRegistryEntry(
  in long aHKeyConstant,
  in string aSubKeyName,
  in string aValueName
);
Parameters
aHKeyConstant
The starting key, using the constants defined above.
aSubKeyName
The sub key to locate.
aValueName
The value to locate in the sub key. The empty string returns the default value of the sub key.
Return value

The value of the specified sub key/value, truncated to 4096 bytes.

restoreFileSettings()

Obsolete since Gecko 1.9 (Firefox 3)

Restores system settings to what they were before Firefox modified them.

void restoreFileSettings(
  in boolean aForAllUsers
);
Parameters
aForAllUsers
Whether or not Firefox should restore settings for all users on a multi-user system.

shortcutMaintenance()

Provides the shell service an opportunity to do some Win7+ shortcut maintenance needed on initial startup of the browser.

void shortcutMaintenance();
Parameters

None.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:87 次

字数:4708

最后编辑:7 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文