Registry

Overview

Windows registry accessing class.

Location

 

constructor    (declared in Object)

Default constructor.

 

constructor

 

Registry()

 

init()

 

Registry()

ClassesRoot

Registry key for classes root.

 

const ClassesRoot: String = "HKEY_CLASSES_ROOT";

 

const String ClassesRoot = "HKEY_CLASSES_ROOT"

 

static let ClassesRoot: String = "HKEY_CLASSES_ROOT"

 

static final String ClassesRoot = "HKEY_CLASSES_ROOT"

CurrentConfig

Registry key for current config.

 

const CurrentConfig: String = "HKEY_CURRENT_CONFIG";

 

const String CurrentConfig = "HKEY_CURRENT_CONFIG"

 

static let CurrentConfig: String = "HKEY_CURRENT_CONFIG"

 

static final String CurrentConfig = "HKEY_CURRENT_CONFIG"

CurrentUser

Registry key for current user.

 

const CurrentUser: String = "HKEY_CURRENT_USER";

 

const String CurrentUser = "HKEY_CURRENT_USER"

 

static let CurrentUser: String = "HKEY_CURRENT_USER"

 

static final String CurrentUser = "HKEY_CURRENT_USER"

DynData

Registry key for dynamic root.

 

const DynData: String = "HKEY_DYN_DATA";

 

const String DynData = "HKEY_DYN_DATA"

 

static let DynData: String = "HKEY_DYN_DATA"

 

static final String DynData = "HKEY_DYN_DATA"

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

GetSubKeyNames

Get the names of sub keys.

 

class method GetSubKeyNames(KeyName: String): nullable ImmutableList<String>

 

static ImmutableList<String>? GetSubKeyNames(String KeyName)

 

static func GetSubKeyNames(_ KeyName: String) -> ImmutableList<String>?

 

static ImmutableList<String>? GetSubKeyNames(String KeyName)

Parameters:

  • KeyName:

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

GetValue

Gets a value from the registry.

 

class method GetValue(KeyName: String; ValueName: String; defaultValue: Object): Object

 

static Object GetValue(String KeyName, String ValueName, Object defaultValue)

 

static func GetValue(_ KeyName: String, _ ValueName: String, _ defaultValue: Object) -> Object

 

static Object GetValue(String KeyName, String ValueName, Object defaultValue)

Parameters:

  • KeyName:
  • ValueName:
  • defaultValue:

GetValue32

Gets a value from the 32bits registry.

 

class method GetValue32(KeyName: String; ValueName: String; defaultValue: Object): Object

 

static Object GetValue32(String KeyName, String ValueName, Object defaultValue)

 

static func GetValue32(_ KeyName: String, _ ValueName: String, _ defaultValue: Object) -> Object

 

static Object GetValue32(String KeyName, String ValueName, Object defaultValue)

Parameters:

  • KeyName:
  • ValueName:
  • defaultValue:

GetValue64

Gets a value from the 32 bits registry.

 

class method GetValue64(KeyName: String; ValueName: String; defaultValue: Object): Object

 

static Object GetValue64(String KeyName, String ValueName, Object defaultValue)

 

static func GetValue64(_ KeyName: String, _ ValueName: String, _ defaultValue: Object) -> Object

 

static Object GetValue64(String KeyName, String ValueName, Object defaultValue)

Parameters:

  • KeyName:
  • ValueName:
  • defaultValue:

GetValueWithFlags

Get a value with the given view flags.

 

class method GetValueWithFlags(KeyName: String; ValueName: String; defaultValue: Object; ViewFlags: DWORD): Object

 

static Object GetValueWithFlags(String KeyName, String ValueName, Object defaultValue, DWORD ViewFlags)

 

static func GetValueWithFlags(_ KeyName: String, _ ValueName: String, _ defaultValue: Object, _ ViewFlags: DWORD) -> Object

 

static Object GetValueWithFlags(String KeyName, String ValueName, Object defaultValue, DWORD ViewFlags)

Parameters:

  • KeyName:
  • ValueName:
  • defaultValue:
  • ViewFlags:

LocalMachine

Gets the registry hive for local mahine.

 

const LocalMachine: String = "HKEY_LOCAL_MACHINE";

 

const String LocalMachine = "HKEY_LOCAL_MACHINE"

 

static let LocalMachine: String = "HKEY_LOCAL_MACHINE"

 

static final String LocalMachine = "HKEY_LOCAL_MACHINE"

PerformanceData

Gets the registry hive for performance data.

 

const PerformanceData: String = "HKEY_PERFORMANCE_DATA";

 

const String PerformanceData = "HKEY_PERFORMANCE_DATA"

 

static let PerformanceData: String = "HKEY_PERFORMANCE_DATA"

 

static final String PerformanceData = "HKEY_PERFORMANCE_DATA"

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

Parameters:

  • a: left value
  • b: right value

SetValue (String, String, Object)

Sets a registry value.

 

class method SetValue(KeyName: String; ValueName: String; Value: Object)

 

static void SetValue(String KeyName, String ValueName, Object Value)

 

static func SetValue(_ KeyName: String, _ ValueName: String, _ Value: Object)

 

static void SetValue(String KeyName, String ValueName, Object Value)

Parameters:

  • KeyName:
  • ValueName:
  • Value:

Sets a registry value.

 

class method SetValue(KeyName: String; ValueName: String; Value: Object; ValueKind: RegistryValueKind)

 

static void SetValue(String KeyName, String ValueName, Object Value, RegistryValueKind ValueKind)

 

static func SetValue(_ KeyName: String, _ ValueName: String, _ Value: Object, _ ValueKind: RegistryValueKind)

 

static void SetValue(String KeyName, String ValueName, Object Value, RegistryValueKind ValueKind)

Parameters:

  • KeyName:
  • ValueName:
  • Value:
  • ValueKind:

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

Users

Gets the registry hive for USERS.

 

const Users: String = "HKEY_USERS";

 

const String Users = "HKEY_USERS"

 

static let Users: String = "HKEY_USERS"

 

static final String Users = "HKEY_USERS"

 

ClassesRoot

Registry key for classes root.

 

const ClassesRoot: String = "HKEY_CLASSES_ROOT";

 

const String ClassesRoot = "HKEY_CLASSES_ROOT"

 

static let ClassesRoot: String = "HKEY_CLASSES_ROOT"

 

static final String ClassesRoot = "HKEY_CLASSES_ROOT"

CurrentConfig

Registry key for current config.

 

const CurrentConfig: String = "HKEY_CURRENT_CONFIG";

 

const String CurrentConfig = "HKEY_CURRENT_CONFIG"

 

static let CurrentConfig: String = "HKEY_CURRENT_CONFIG"

 

static final String CurrentConfig = "HKEY_CURRENT_CONFIG"

CurrentUser

Registry key for current user.

 

const CurrentUser: String = "HKEY_CURRENT_USER";

 

const String CurrentUser = "HKEY_CURRENT_USER"

 

static let CurrentUser: String = "HKEY_CURRENT_USER"

 

static final String CurrentUser = "HKEY_CURRENT_USER"

DynData

Registry key for dynamic root.

 

const DynData: String = "HKEY_DYN_DATA";

 

const String DynData = "HKEY_DYN_DATA"

 

static let DynData: String = "HKEY_DYN_DATA"

 

static final String DynData = "HKEY_DYN_DATA"

LocalMachine

Gets the registry hive for local mahine.

 

const LocalMachine: String = "HKEY_LOCAL_MACHINE";

 

const String LocalMachine = "HKEY_LOCAL_MACHINE"

 

static let LocalMachine: String = "HKEY_LOCAL_MACHINE"

 

static final String LocalMachine = "HKEY_LOCAL_MACHINE"

PerformanceData

Gets the registry hive for performance data.

 

const PerformanceData: String = "HKEY_PERFORMANCE_DATA";

 

const String PerformanceData = "HKEY_PERFORMANCE_DATA"

 

static let PerformanceData: String = "HKEY_PERFORMANCE_DATA"

 

static final String PerformanceData = "HKEY_PERFORMANCE_DATA"

Users

Gets the registry hive for USERS.

 

const Users: String = "HKEY_USERS";

 

const String Users = "HKEY_USERS"

 

static let Users: String = "HKEY_USERS"

 

static final String Users = "HKEY_USERS"

 

GetSubKeyNames

Get the names of sub keys.

 

class method GetSubKeyNames(KeyName: String): nullable ImmutableList<String>

 

static ImmutableList<String>? GetSubKeyNames(String KeyName)

 

static func GetSubKeyNames(_ KeyName: String) -> ImmutableList<String>?

 

static ImmutableList<String>? GetSubKeyNames(String KeyName)

Parameters:

  • KeyName:

GetValue

Gets a value from the registry.

 

class method GetValue(KeyName: String; ValueName: String; defaultValue: Object): Object

 

static Object GetValue(String KeyName, String ValueName, Object defaultValue)

 

static func GetValue(_ KeyName: String, _ ValueName: String, _ defaultValue: Object) -> Object

 

static Object GetValue(String KeyName, String ValueName, Object defaultValue)

Parameters:

  • KeyName:
  • ValueName:
  • defaultValue:

GetValue32

Gets a value from the 32bits registry.

 

class method GetValue32(KeyName: String; ValueName: String; defaultValue: Object): Object

 

static Object GetValue32(String KeyName, String ValueName, Object defaultValue)

 

static func GetValue32(_ KeyName: String, _ ValueName: String, _ defaultValue: Object) -> Object

 

static Object GetValue32(String KeyName, String ValueName, Object defaultValue)

Parameters:

  • KeyName:
  • ValueName:
  • defaultValue:

GetValue64

Gets a value from the 32 bits registry.

 

class method GetValue64(KeyName: String; ValueName: String; defaultValue: Object): Object

 

static Object GetValue64(String KeyName, String ValueName, Object defaultValue)

 

static func GetValue64(_ KeyName: String, _ ValueName: String, _ defaultValue: Object) -> Object

 

static Object GetValue64(String KeyName, String ValueName, Object defaultValue)

Parameters:

  • KeyName:
  • ValueName:
  • defaultValue:

GetValueWithFlags

Get a value with the given view flags.

 

class method GetValueWithFlags(KeyName: String; ValueName: String; defaultValue: Object; ViewFlags: DWORD): Object

 

static Object GetValueWithFlags(String KeyName, String ValueName, Object defaultValue, DWORD ViewFlags)

 

static func GetValueWithFlags(_ KeyName: String, _ ValueName: String, _ defaultValue: Object, _ ViewFlags: DWORD) -> Object

 

static Object GetValueWithFlags(String KeyName, String ValueName, Object defaultValue, DWORD ViewFlags)

Parameters:

  • KeyName:
  • ValueName:
  • defaultValue:
  • ViewFlags:

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

Parameters:

  • a: left value
  • b: right value

SetValue (String, String, Object)

Sets a registry value.

 

class method SetValue(KeyName: String; ValueName: String; Value: Object)

 

static void SetValue(String KeyName, String ValueName, Object Value)

 

static func SetValue(_ KeyName: String, _ ValueName: String, _ Value: Object)

 

static void SetValue(String KeyName, String ValueName, Object Value)

Parameters:

  • KeyName:
  • ValueName:
  • Value:

Sets a registry value.

 

class method SetValue(KeyName: String; ValueName: String; Value: Object; ValueKind: RegistryValueKind)

 

static void SetValue(String KeyName, String ValueName, Object Value, RegistryValueKind ValueKind)

 

static func SetValue(_ KeyName: String, _ ValueName: String, _ Value: Object, _ ValueKind: RegistryValueKind)

 

static void SetValue(String KeyName, String ValueName, Object Value, RegistryValueKind ValueKind)

Parameters:

  • KeyName:
  • ValueName:
  • Value:
  • ValueKind:

 

constructor    (declared in Object)

Default constructor.

 

constructor

 

Registry()

 

init()

 

Registry()

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()