Registry Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Registry-commands >

Registry Commands

RER. - Registry Entry Read

Previous Top Next


MiniRobotLanguage (MRL)

 

RER. Command

REgistry entry Read

 

 

Intention

 

Read Registry Entries and values of any datatype..

 

If this command fails, it will return a API-Error number on the stack.

If the command succeeds, the value on the stack is zero.

 

VAR.§§REG=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Adobe Acrobat 5.0\

RER.§§REG|DisplayName|§§RES

DBP. Result: >§§RES<

' Now we read a value and get its Type...

RER.§§REG|DisplayName|§§RES|§§TYP

DBP. Result: >§§RES<§§TYP>

END.

 

You can use this command on x64 systems. In this case, you have the 32- and the 64-bit registry. You can choose which to use with the OPT. - command.

 

' Switch access to x64-registry

OPT.reg64|1

 

or

 

' Switch access to x32-registry on x64 systems

OPT.reg64|1

 

 

 

Syntax

 

RER.P1|P2|P3[|P4]

 

 

Parameter Explanation

 

P1 - (in) Registry Key to read

 

P2 - (in) Name of Reg - Entry which is been read.

 

P3 - (out) Result: Content Value of Reg-Entry which is been read.

 

P4 - (out) numeric value which shows the Datatype of value which

     is been read. Details  see below.

 

Here is the numeric code for the datatype-value (P4):

0 - 'REG_NONE No defined value type.

1 - 'REG_SZ A null-terminated string.

     It will be a Unicode or ANSI string, depending on whether

     you use the Unicode or ANSI functions.

2 - 'REG_EXPAND_SZ A null-terminated string that contains

     unexpanded references to ' environment variables (for example, "%PATH%").

     It will be a Unicode or ANSI string depending on

     whether you use the Unicode or ANSI functions.

3 - 'REG_BINARY Binary data in any form.

4 - 'REG_DWORD A 32-bit number.

5 - 'REG_DWORD_BIG_ENDIAN A 32-bit number in big-endian format.

     In big-endian format,

     ' the most significant byte of a word is the low-order byte.

6 - 'REG_LINK A Unicode symbolic link.

7 - 'REG_MULTI_SZ An array of null-terminated strings,

     terminated by two null characters.

8 - 'REG_RESOURCE_LIST A device-driver resource list.

 

 

 

 

Example

 

DBP.===============================================================

' First we read a value ...

: §§REG=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Adobe Acrobat 5.0\

RER.§§REG|DisplayName|§§RES

DBP. Result: >§§RES<

DBP.===============================================================

' Now we read a value and get its Type...

RER.§§REG|DisplayName|§§RES|§§TYP

DBP. Result: >§§RES<§§TYP>

DBP.===============================================================

END.

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also:

 

    IER. / NER. - If-Exist-Registry

    OPT. - Optional Settings

    FER. - For-Each-Registry

    RER. - Registry Entry Read

    REW. - Registry-Entry-Write

    RDI. - Registry-Delete-Item

    RDT. - Registry-DelTree