Platforms to show: All Mac Windows Linux Cross-Platform

Back to RegistryMBS class.

RegistryMBS.classesRoot as RegistryKeyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Windows Registry MBS Win Plugin ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gives you an RegistryKeyMBS object for the ClassesRoot Tree.

Some examples using this method:

RegistryMBS.CurrentConfig as RegistryKeyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Windows Registry MBS Win Plugin ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gives you an RegistryKeyMBS object for the CurrentConfig Tree.

Some examples using this method:

RegistryMBS.CurrentUser as RegistryKeyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Windows Registry MBS Win Plugin ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gives you an RegistryKeyMBS object for the CurrentUser Tree.

RegistryMBS.getBinaryValue(keypath as string,valuename as string, Use64bitRegistry as boolean = false) as Memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Windows Registry MBS Win Plugin ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gives you a Memoryblock of the value called valuename in the key found at keypath.
Example
const path="HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion"
dim r as new RegistryMBS
msgBox "This OS is: "+r.getBinaryValue(path, "ProductName").cstring(0)

Returns nil on any error.
Use64bitRegistry: Pass true to create key in 64 bit view of the Registry instead of 32 bit view.

RegistryMBS.getStringValue(keypath as string,valuename as string, Use64bitRegistry as boolean = false) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Windows Registry MBS Win Plugin ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gives you a String of the value called valuename in the key found at keypath.
Example
const path="HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion"
dim r as new RegistryMBS
msgBox "This OS is: "+r.getStringValue(path, "ProductName")

Returns "" on any error.
Use64bitRegistry: Pass true to create key in 64 bit view of the Registry instead of 32 bit view.

RegistryMBS.Key(keypath as string, Use64bitRegistry as boolean = false) as RegistryKeyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Windows Registry MBS Win Plugin ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gives you an RegistryKeyMBS object for the given path of a key.
Example
const path="HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion"
dim r as new RegistryMBS
msgBox r.Key(path).Name

If you need you can recreate this function in Xojo code to have some error checking. This function here will return nil on any error.

Use64bitRegistry: Pass true to create key in 64 bit view of the Registry instead of 32 bit view.

RegistryMBS.LocalMachine as RegistryKeyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Windows Registry MBS Win Plugin ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gives you an RegistryKeyMBS object for the LocalMachine Tree.

Some examples using this method:

RegistryMBS.PerformanceData as RegistryKeyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Windows Registry MBS Win Plugin 10.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gives you an RegistryKeyMBS object for the PerformanceData Tree.

RegistryMBS.Users as RegistryKeyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Windows Registry MBS Win Plugin ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gives you an RegistryKeyMBS object for the Users Tree.

The items on this page are in the following plugins: MBS Win Plugin.


The biggest plugin in space...