next up previous contents
Next: Properties Up: FFish Script Objects Reference Previous: moveNext   Contents

RegKey Object

Description

Access windows registry.

available: SWFKit, SWFKit Pro

Syntax

new RegKey(keyname)


Parameters

keyname
Specifies the key name of the registry. This parameter must begin with a predefined key name; follow with a series of backslash (`) and sub key name groups. The predefined key names are:
Name Meaning
HKCR HKEY_CLASSES_ROOT
HKCC HKEY_CURRENT_CONFIG
HKCU HKEY_CURRENT_USER
HKLM HKEY_LOCAL_MACHINE
HKU HKEY_USERS
HKPD HKEY_PERFORMANCE_DATA
HKDD HKEY_DYN_DATA


Remarks

If the registry key specified by the keyname parameter has been successfully opened, a new instance of the RegKey object is created. Otherwise, the constructor returns null.


Example

r = new RegKey("HKCU\\Software\\Demo1");
d = new Date(r.lastWriteTime);
trace(d.toLocaleString());




Subsections

Copyright ©2000-2007 Shanghai TopCMM Software Technologies. All Rights Reserved.