isKeyWritable

isKeyWritable

Returns whether the given registry key is writable or not.

Method of

WinReg object

Syntax

boolean isKeyWritable( string key);

Parameters

The method has the following parameter:

key
A string representing the path to the key

Returns

A boolean value: true if the key is writable; false if not.

Example

winreg = getWinRegistry();
if ( winreg != null )
{
    winreg.setRootKey ( winreg.HKEY_LOCAL_MACHINE );
    if(winreg.isKeyWritable("SOFTWARE"))
    {
        //isKeyWritable returned true
    }
    else
    {
        //isKeyWritable returned false
    }

Document Tags and Contributors

Contributors to this page: Sheppy, Fredchat, trevorh, Rod Whiteley
Last updated by: Sheppy,
Hide Sidebar