nsIWindowsHooks

IID:19c9fbb0-06a3-11d4-8076-00600811a9c3
Inherits From:nsISupports

Properties

nsIWindowsHooksSettings settings


Methods

PRBool checkSettings ( nsIDOMWindowInternal parent ) PRBool isOptionEnabled ( char* option ) void setImageAsWallpaper ( nsIDOMElement imageElement , PRBool useBackground ) void startupAddOption ( char* option ) void startupRemoveOption ( char* option )

PRBool checkSettings ( nsIDOMWindowInternal parent )

Arguments:
parent

PRBool isOptionEnabled ( char* option )

Returns true if command is in the "(appname) QuickLaunch" value in the HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run key.

Arguments:
option

void setImageAsWallpaper ( nsIDOMElement imageElement , PRBool useBackground )

Accepts an element, either an HTML img element or an element with a background image, serializes the image to a bitmap file in the windows directory, and sets it to be the desktop wallpaper.

Arguments:
imageElement
useBackground

void startupAddOption ( char* option )

Adds the option to the "(appname) QuickLaunch" value to the key mentioned above, with data "(path\to\app.exe) option", if not done already.

Arguments:
option

void startupRemoveOption ( char* option )

Removes the commnand from the "(appname) QuickLaunch" value from the key mentioned above, if not done already. And deletes the "(appname) QuickLaunch" value entirely if there are no options left

Arguments:
option

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com