Two new operations defined for deleting keys and values: MX_DELKEY (8) and MX_DELVALUE (9):
xcall MIAMEX, MX_REGISTRY, MX_DELKEY, hkey, subkey, rights, status
xcall MIAMEX, MX_REGISTRY, MX_DELVALUE, hkey, name, status
rights (Num) [in]
only applies when running in 64 bit Windows, in which case it can be used to select the registry view:
RGKEY_WOW64_32KEY &h0200 Delete key from 32 bit registry view
RGKEY_WOW64_64KEY &h0100 Delete key from 64 bit registry view
hkey (B4) [in]
must specify an open registry handle returned from a previous REGOP_OPEN operation (or may be one of the built-in hive handles, e.g., HKEY_CURRENT_USER, etc.) Note that to delete a key, the the RGKEY_DELETE (&h00010000) access right must have been specified in the REGOP_OPEN call. To delete a value, the RGKEY_SET_VALUE access right must have been specified in the open.
subkey (String) [in]
specifies the key to delete (within HKEY). All values within the key will be deleted, but if there are any nested subkeys, the operation will fail. (To delete a multi-level tree, you must start from the lowest level and work up.)
name (String) [in]
specifies the name of a value to delete.
status (F6) [out]
returns 0 for success, else an error code.