﻿# MX\_REGISTRY

**xcall MIAMEX, MX\_REGISTRY, opcode, <params depending on opcode>**

(Windows only) MX\_REGISTRY (MIAMEX 138) provides a range of Registry operations. The symbols and values for _opcode_ are shown in the following table. Parameters, which are dependent on the function being called, are listed and discussed in the topics covering the various functions.  See also [MX\_GETREG](mx_getreg.md) (simplified retrieve with ATE support). 

| **Symbol** | **Value** | **Function** |
|------|------|------|
| REGOP\_OPEN | 1 | [Open](open_mx138.md) |
| REGOP\_CREATE | 2 | [Create](create_mx138.md) |
| REGOP\_SET | 3 | [Set](set_mx138.md) |
| REGOP\_READ | 4 | [Read](read_mx138.md) |
| REGOP\_ENUMKEYS | 5 | [Enumerate keys](enumeratekeys.md) |
| REGOP\_ENUMVALS | 6 | [Enumerate values](enumeratevalues.md) |
| REGOP\_CLOSE | 7 | [Close](close_mx138.md) |
| REGOP\_DELKEY | 8 | [Delete Key](deletekey.md)  |
| REGOP\_DELVALUE | 9 | [Delete Value](deletevalue.md) |
| REGOP\_DELIMS | 64 | [Replace Null Delimiters](replacenulldelimiters.md) |
| **Definition file: [ashell.def](ashell.md)** | | 

**Comments**

MX\_REGISTRY does not recognize ATE. If executed in a non-Windows environment (whether ATE or not), it will be essentially a null operation. If executed in the ATSD environment, it will return information from the server registry, not the client. If you want to retrieve registry information from the ATE client, either use MX\_GETREG for simple retrieval, or package your MX\_REGISTRY operations in an SBX which can be executed on the client side via AG\_XFUNCS or [MX\_AGWRAPPER](mx_agwrapper.md).

Although direct access to the Registry is not available for applications running A-Shell/Unix, Steve Evans of Caliq has developed a pair of routines which allow information to be saved using a similar model but which work on all platforms. See the routines [INIX in SOSLIB:\[907,26\]](https://bitbucket.org/microsabio/soslib/src/master/907026/inix.bas) and [SYSREG in SOSLIB:\[907,26\]](https://bitbucket.org/microsabio/soslib/src/master/907026/sysreg.bas) for details.