nsIWindowsShellService 编辑
browser/components/shell/public/nsIWindowsShellService.idl
Scriptable 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
Attribute | Type | Description |
desktopBackgroundColor | unsigned long | The 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 |
unreadMailCount | unsigned long | The number of unread mail messages for the current user. Read only. |
Constants
Valid starting keys for the Windows Registry.
Constant | Value | Description |
HKCR | 0 | HKEY_CLASSES_ROOT. Obsolete since Gecko 1.8 |
HKCC | 1 | HKEY_CURRENT_CONFIG. Obsolete since Gecko 1.8 |
HKCU | 2 | HKEY_CURRENT_USER. Obsolete since Gecko 1.8 |
HKLM | 3 | HKEY_LOCAL_MACHINE. Obsolete since Gecko 1.8 |
HKU | 4 | HKEY_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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论