Windows (from HSLExtensions)
https://github.com/theonetruenerd/VenusPackages/blob/main/Windows.pkg
The windows library from HSLExtensions adds functions related to registries and special directories. The functions it adds are as follows:
- GetRegistryValue(variable i_intHKey, variable i_strKey, variable i_strValueName, variable o_varValue)
This function reads a value from the specified registry
- Params i_intHKey:
The main key of the registry. 1 = ClassesRoot, 2 = CurrentUser, 3 = LocalMachine, 4 = Users, 5 = CurrentConfig.
- Params i_strKey:
The key to the path (e.g. SOFTWAREPhoenixDirectoriesMethods)
- Params i_strValueName:
The name of the value to be read
- Params o_varValue:
The value which was read (type according to value type)
- Returns:
Boolean showing whether the key exists (hslTrue) or not (hslFalse)
- Return type:
Boolean
- GetSpecialDirectory(variable i_intSpecialDirectory)
This function gets the specified special directory
- Params i_intSpecialDirectory:
The type of the special directory. 1 = WindowsDirectory, 2 = SystemDirectory, 3 = TemporaryDirectory.
- Returns:
The special directory
- Return type:
String
- SetRegistryValue(variable i_intHKey, variable i_strKey, variable i_strValueName, variable i_varValue, variable i_intValueType)
This function writes a value to the specified registry
- Params i_intHKey:
The main key of the registry. 1 = ClassesRoot, 2 = CurrentUser, 3 = LocalMachine, 4 = Users, 5 = CurrentConfig.
- Params i_strKey:
The key to the path (e.g. SOFTWAREPhoenixDirectoriesMethods)
- Params i_strValueName:
The name of the value to be read
- Params i_varValue:
The value which was will be written in
- Params i_intValueType:
The type of the value. 1 = String, 2 = Number, 3 = Binary, 4 = ExpandableString
- Returns:
Boolean showing whether the function was successful (hslTrue) or not (hslFalse)
- Return type:
Boolean