M-Files UI Extensibility Framework
WriteToRegistry Method
ICommonFunctions Interface : WriteToRegistry 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.
The registry value to write.

The type of the registry value as string. Supported types:

Description
Writes a new value to the registry.
Syntax
Visual Basic
Public Sub WriteToRegistry( _
   ByVal userSpecific As Boolean, _
   ByVal key As String, _
   ByVal valueName As String, _
   ByVal value As Variant, _
   ByVal valueType As String _
) 
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.
value
The registry value to write.
valueType

The type of the registry value as string. Supported types:

  • REG_SZ: String type.
  • REG_DWORD: 32-bit unsigned number type.
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.1.3915.45 and newer.

See Also

ICommonFunctions Interface  | ICommonFunctions Members