@Throws(Exception::class) fun runSafely(stack: Catbert.FastStack?): Any? { val k = getString(stack) val r = getString(stack) return if (!Sage.WINDOWS_OS) Pooler.EMPTY_STRING_ARRAY else Sage.getRegistryNames( Sage.getHKEYForName( r ), k ) }
Returns a list of the Windows registry names which exist under the specified root & amp ; key ( Windows only ) Acceptable values for the Root are : `` HKCR '' , `` HKEY_CLASSES_ROOT '' , `` HKCC '' , `` HKEY_CURRENT_CONFIG '' , `` HKCU '' , `` HKEY_CURRENT_USER '' , `` HKU '' , `` HKEY_USERS '' , `` HKLM '' or `` HKEY_LOCAL_MACHINE '' ( HKLM is the default if nothing matches )