# Create > [HTML Version](create_mx138.htm) **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 [REGOP\_OPEN](open_mx138.htm.md). 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)