These functions are used for accessing the System Registry database.
To get an access, a new handle must first be requested with the help of regNewHandle. The remaining functions can then be called by means of this handle. At the end, the handle must be released again with the help of regDeleteHandle.
Name |
Purpose |
Arguments |
Return value |
Example |
regClose |
closes the access to a key in the registry database |
1: INTEGER: Handle |
BOOLEAN: |
regClose (reghandle) |
regCreateKey |
generates a new key in the registry database and opens this for access |
1: INTEGER: Handle 2: BOOLEAN: Folder to be accessed: 3: STRING: Path of the searched key 4: BOOLEAN |
BOOLEAN: |
regCreateKey (reghandle, true, strRegPath, false); |
regDeleteHandle |
releases the handle on the registry database |
1: INTEGER: Handle |
BOOLEAN: |
regDeleteHandle (reghandle); |
regNewHandle |
requests for an access handle to the registry database |
- |
INTEGER: Handle (in case of error 0) |
reghandle: = regNewHandle; |
regOpen |
opens the access to a key in the registry database |
1: INTEGER: Handle 2: BOOLEAN: Folder to be accessed: 3: STRING: Path of the searched key 4: BOOLEAN |
BOOLEAN: |
regOpen (reghandle, true, strRegPath, false) |
regReadDWord |
reads a value from the open key of the registry database |
1: INTEGER: Handle 2: STRING: Name of the key 3: INTEGER: read value |
BOOLEAN: |
|
regReadString |
reads a string from the open key of the registry database |
1: INTEGER: Handle 2: STRING: Name of the key 3: STRING: read value |
BOOLEAN: |
regReadString (reghandle, regkeytim, oldstime |
regWriteDWord |
writes a value to the open key of the registry database |
1: INTEGER: Handle 2: STRING: Name of the key 3: INTEGER: value to be entered |
BOOLEAN: |
|
regWriteString |
writes a string in the open key of the registry database |
1: INTEGER: Handle 2: STRING: Name of the key 3: STRING: value to be entered |
BOOLEAN: |
regWriteString (reghandle, regkeyval, newsvalue); |