docs

Home All functions Categories

vuEZRegPut(ByUser, KeyName, KeyValue)

vuEZRegPut(LONG,*CSTRING,*CSTRING), Signed

Description

Saves a value in the Windows registry without requiring knowledge of the registry key structure. The function automatically creates the required key and subkeys. Keys are stored under:

This allows each application to store values independently without overwriting each other.

Parameters

Parameter Data Type Description
ByUser LONG 0 = Store value with the PC (all users)
1 = Store value with the current logged-in user
KeyName CSTRING(128) Alphanumeric key name to store the value under
KeyValue CSTRING(128) The data value to store

Returns

1 (True) on success, 0 (False) on failure.

Example

! Example: Store a registration code for application "Trivette"
KeyName  = 'Registration Code'
KeyValue = '07 0F CB 4A 9D'

IF vuEZRegPut(0, KeyName, KeyValue) = 1
  MESSAGE('Registration saved successfully.')
END

Notes

Home All functions Categories