<<

Contents

Search

>>

 

DEL_REGISTRY_VALUE_CLIENT

 

 

Function

 

 

Syntax:

DEL_REGISTRY_VALUE_CLIENT(<Hkey>,<Subkey>,<Name>)

 

<Hkey>

= <STRING-EXPRESSION>

<Subkey>

= <STRING-EXPRESSION>

<Name>

= <STRING-EXPRESSION>

 

 

Meaning:

Deletes under WINDOWS an entry in the WINDOWS registry of the client computer.

 

If the program is not a 2T program, the functions DEL_REGISTRY_VALUE_CLIENT and DEL_REGISTRY_VALUE are identical.

 

<Hkey> must contain one of the following root keys:

 

                 HKEY_CLASSES_ROOT
                 HKEY_CURRENT_CONFIG
                 HKEY_CURRENT_USER
                 HKEY_DYN_DATA
                 HKEY_LOCAL_MACHINE
                 HKEY_PERFORMANCE_DATA
                 HKEY_PERFORMANCE_NLSTEXT
                 HKEY_PERFORMANCE_TEXT
                 HKEY_USERS

 

<Subkey> contains the path in <Hkey> , in which the value of <Name> is stored.

 

If <Name> contains the empty string "", the key <Subkey> and all its subkeys are deleted.

 

DEL_REGISTRY_VALUE_CLIENT returns 0 if the entry could be deleted.

In the case of an error DEL_REGISTRY_VALUE_CLIENT returns -1 and ERRORTEXT$ contains the error text.

 

In order to access the WINDOWS registry the JNA package (Java Native Access) has to be installed:

set CLASSPATH =jna-3.5.2.jar;jna-platform-3.5.2.jar;%CLASSPATH%

 

Parameter:

Hkey

Root key

Subkey

Path in <Hkey>

Name

Data element

 

Sample:

RET% = DEL_REGISTRY_VALUE_CLIENT("HKEY_LOCAL_MACHINE","Software\Ebusoft","Version")

 

IF RET% = -1

THEN ERRORMES = "Fehler: " + ERRORTEXT$

ENDIF

 

See also:

DEL_REGISTRY_VALUE

GET_REGISTRY_VALUE$

GET_REGISTRY_VALUE_CLIENT$

SET_REGISTRY_VALUE

SET_REGISTRY_VALUE_CLIENT