Platforms to show: All Mac Windows Linux Cross-Platform

Back to RegistryFileTypeMBS class.

RegistryFileTypeMBS.Create as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows Registry MBS Win Plugin ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Creates this file type.
Example
dim r as RegistryFileTypeMBS
' set properties for r
dim errorcode as Integer
errorcode=r.create

Returns:

-1- Run on Mac OS
0- OK
1- Failed to create main extension key.
2- Failed to create the description key for file type.
3- Failed to create the key for the icon.
4- Failed to create the key for the open description.
5- Required parameters not provided.

This function may fail to run if permissions are denied.
Or it may only affect the shadow registry used by Windows to protect itself from having unauthorized apps editing the real registry.

RegistryFileTypeMBS.Remove as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows Registry MBS Win Plugin ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Removes this file type.
Example
dim r as RegistryFileTypeMBS
dim errorcode as Integer

errorcode=r.remove

Returns:

-1- Run on Mac OS or parameters bad.
0- OK
x- A Windows error code like 5 for permissions denied.

Note: The return values changed in MBS Plugin 3.2 to now return Windows error codes!

This function may fail to run if permissions are denied.
Or it may only affect the shadow registry used by Windows to protect itself from having unauthorized apps editing the real registry.

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


The biggest plugin in space...