This function is used to create an attribute and its associated numerical value (NUM_BIN_2 format) for a given key in the registry. If the key does not already exist, it will be created. If the attribute already exists, the old value associated with it will be erased.
Context
Windows client,
Windows server.
Parameters
NUM_BIN_2 |
KeySet |
Value describing the subset of keys stored in the registry. HKEY_CLASSES_ROOT: value "0", |
ALPHA(n) |
KeyName |
Path leading to the key in which the AttributeName attribute is to be written. |
ALPHA(n) |
AttributeName |
Character string describing the attribute associated with the KeyName key . |
NUM_BIN_2 |
AttributeValue |
Variable associated with the AttributeName attribute. |
BOOL |
ReturnCode |
Return code for the operation: *TRUE if the operation was successful. *FALSE if it was not. |
Example
KeySet = 1
KeyName = 'Application\Startup_Options'
AttributeName = 'User_Number'
AttributeValue = 126
CALL_DLL 'VATOOLBX.DLL' 'VaToolBxWriteKeyValueBin2' KeySet KeyName AttributeName AttributeValue OK
List of the VaToolBx functions by topic