M-Files UI Extensibility Framework
ReadFromRegistry Method
ICommonFunctions Interface : ReadFromRegistry Method
True to use current user registry hive (HKCU), false to use local computer registry hive (HKLM).
The registry key part after the M-Files version specific part. E.g. "Client\Common" would point to the full registry key <HKEY>\Software\Motive\M-Files\<version>\Client\Common.
The value name. Empty string indicates the default value of the key.
Description
Reads the registry value from registry.
Syntax
Visual Basic
Public Function ReadFromRegistry( _
   ByVal userSpecific As Boolean, _
   ByVal key As String, _
   ByVal valueName As String _
) As Variant
Parameters
userSpecific
True to use current user registry hive (HKCU), false to use local computer registry hive (HKLM).
key
The registry key part after the M-Files version specific part. E.g. "Client\Common" would point to the full registry key <HKEY>\Software\Motive\M-Files\<version>\Client\Common.
valueName
The value name. Empty string indicates the default value of the key.
Return Type
The registry value, or empty if the registry value was not found.
Remarks

This method affects values and keys under the registry key of current M-Files version.

Note for 32-bit processes on 64-bit operating system: M-Files registry access is always pointed to the native registry, so the 32-bit processes will use the same registry with 64-bit processes.

Supported in M-Files 10.2.3920.31 and newer.

See Also

ICommonFunctions Interface  | ICommonFunctions Members