xcall MIAMEX, MX_REGISTRY, REGOP_CREATE, hkey, subkey, rights, hkeynew, status
This is used to when saving values to the Registry. It will create the specified subkey if it does not exist, or if the subkey already exists, it will open it.
The parameters are nearly the same as for Open. The main difference is that the status parameter can return either of the following:
STATUS=1 (Key was created)
STATUS=2 (Key already existed and was opened)