# MIAMEX Functions by Number

> [HTML Version](miamexfunctionsbynumber.htm)


| **Symbol** | **Value** | **Function** |
|------|------|------|
| [MX\_CMD\_STATUS](mx_cmd_status.md) | 1 | Get / set command file status |
| [MX\_EXIT](mx_exit.md) | 2 | Exit A-Shell |
| [MX\_FSPEC](mx_fspec.md) | 3 | Translate DevPPN filespec to native |
| [MX\_GETCTRLC](mx_getctrlc.md) | 4 | Get Ctrl+C status |
| [MX\_GETECHO](miamex5getechostatus.md) | 5 | Get echo status |
| [MX\_SETPROMPT](mx_get_set_prompt.md) | 6 | Set command prompt |
| [MX\_GETHEX](mx_get_set_hex.md) | 7 | Get hex output status |
| [MX\_SETHEX](mx_get_set_hex.md) | 8 | Set / reset hex mode |
| [MX\_OCVT](mx_ocvt.md) | 9 | Octal conversion (OCVT) |
| [MX\_CHKPPN](mx_chkppn.md) | 10 | Check for ppn |
| [MX\_GETERSATZ](mx_getersatz.md) | 11 | Return ersatz |
| [MX\_GETVER](mx_getver.md) | 12 | Return A-Shell version |
| [MX\_WSET\_STATUS](mx_wset_status.md) | 13 | Get / set WSET flags |
| [MX\_VUE](mx_vue.md) | 14 | VUE |
| [MX\_COMPIL](mx_compil.md) | 15 | COMPIL |
| [MX\_PREBAS](mx_prebas.md) | 16 | CPRE |
| [MX\_SYNC\_CWD](mx_sync_cwd.md) | 17 | Synchronize A-Shell PPN with system path |
| [MX\_NXTCMD](miamex18getnextlineofcf.md) | 18 | Get next command file line |
| [MX\_GETDEV](mx_getdev.md) | 19 | Get next device |
| [MX\_FINDFIRST](mx_findfirst.md) | 20 | Find first matching file |
| [MX\_FINDNEXT](mx_findnext.md) | 21 | Find next matching file |
| [MX\_DIRSEP](mx_dirsep.md) | 22 | Get directory separator |
| [MX\_FINDEND](mx_findend.md) | 23 | End directory processing |
| [MX\_GETPROMPT](mx_get_set_prompt.md) | 24 | Get prompt |
| [MX\_HASHFILE](mx_hashfile.md) | 25 | Get hash |
| [MX\_PRFSPEC](mx_prfspec.md) | 26 | Print filespec |
| [MX\_COPYFILE](mx_copyfile.md) | 27 | Copy file |
| [MX\_PRINTERR](mx_printerr.md) | 28 | Output error message |
| [MX\_RENAMERR](mx_renamerr.md) | 29 | Output rename error message |
| [MX\_GETQUEUE](mx_getqueue.md) | 30 | Return queue block |
| [MX\_GETENV](mx_getenv.md) | 31 | Return environment variable value |
| [MX\_SETEXT](mx_setext.md) | 32 | Set default extension |
| MX\_MATCHWILD | 33 | Match cmdlin |
| [MX\_GETCISAM](mx_getcisam.md) | 34 | Get CISAM/DISAM version |
| MX\_SETCRM | 35 | Set Console Redirection Mode |
| [MX\_GETHASH](mx_get_set_hash.md) | 36 | Get hex status |
| [MX\_SETHASH](mx_get_set_hash.md) | 37 | Set / reset AMOS hash flag |
| [MX\_MKPATH](mx_mk_rm_path.md) | 38 | Create directory |
| [MX\_RMPATH](mx_mk_rm_path.md) | 39 | Delete directory |
| MX\_GETODBC | 40 | Is ODBC available? |
| [MX\_ZAPQUEUE](mx_zapqueue.md) | 41 | Zap queue |
| MX\_ODBCFIRST | 42 | Return first ODBC table |
| MX\_ODBCNEXT | 43 | Return next ODBC table |
| MX\_ODBCEND | 44 | ODBC end |
| [MX\_GETLOKSER](mx_get_set_lokser.md) | 50 | Return LOKSER flags |
| [MX\_SETLOKSER](mx_get_set_lokser.md) | 51 | Set LOKSER flags |
| [MX\_GETCMDINP](mx_get_set_cmdinp.md) | 52 | Return CMDINP flags |
| [MX\_SETCMDINP](mx_get_set_cmdinp.md) | 53 | Set CMDINP flags |
| [MX\_GETSIG](mx_get_clr_sig.md) | 54 | Return signal received flags (Unix only) |
| [MX\_CLRSIG](mx_get_clr_sig.md) | 55 | Clear signal received flags (Unix only) |
| [MX\_SETENV](mx_setenv.md) | 56 | Change TERM environment variable (Unix only) |
| [MX\_KILL](mx_kill.md) | 57 | Kill job |
| MX\_SHOWLIC | 58 | Display license |
| [MX\_GETOPTIONS](mx_get_set_options.md) | 59 | Return OPTIONS flags |
| [MX\_SETOPTIONS](mx_get_set_options.md) | 60 | Set OPTIONS flags |
| [MX\_GETTRACE](mx_get_set_trace.md) | 61 | Return TRACE flags |
| [MX\_SETTRACE](mx_get_set_trace.md) | 62 | Set TRACE flags |
| [MX\_SETPFK](mx_set_get_pfk.md) | 63 | Set function key translation or PFK  |
| [MX\_GETPFK](mx_set_get_pfk.md) | 64 | Return PFK name |
| [MX\_SCRNPIC](mx_scrnpic.md) | 65 | Take screen snapshot |
| [MX\_QRBLD](mx_qrbld.md) | 66 | Force queue rebuild |
| [MX\_QLOCK](mx_q_lock_unlok.md) | 67 | Lock queue |
| [MX\_QUNLOK](mx_q_lock_unlok.md) | 68 | Unlock queue |
| [MX\_GETUMSK](mx_get_set_umsk.md) | 69 | Return umask (Unix only) |
| [MX\_SETUMSK](mx_get_set_umsk.md) | 70 | Set umask (Unix only) |
| MX\_WINMNU | 71 | Deprecated. Use [AUI\_MENU](aui_menu.md). |
| [MX\_LITMSG](mx_litmsg.md) | 72 | Display LITMSG.xxx message |
| [MX\_READJCB](mx_read_write_jcb.md) | 73 | Return jobtbl.sys record |
| [MX\_WRITEJCB](mx_read_write_jcb.md) | 74 | Write jobtbl.sys record |
| [MX\_GETTIME](mx_gettime.md) | 75 | Get current system time  |
| [MX\_TELSER](mx_telser.md) | 76 | Launch Telnet server mode (Windows only) |
| MX\_SHOWWINDOW | 77 | Deprecated. Use [AUI\_WINDOW](aui_window.md). |
| [MX\_GETGDO](mx_get_set_gdo.md) | 78 | Get global DO parameters |
| [MX\_SETGDO](mx_get_set_gdo.md) | 79 | Set global DO parameters |
| [MX\_XCBINFOX](deprecated-subroutines.md#mx_xcbinfox) | 80 | **Deprecated** |
| [MX\_XCBDATAX](deprecated-subroutines.md#mx_xcbdatax) | 81 | **Deprecated**. |
| [MX\_EXITSBX](mx_exitsbx.md) | 82 | Exit to dot prompt (even from with an [SBX](sbx.md) ) |
| [MX\_GETFKW](mx_get_set_fkw.md) | 83 | Get FKEYWAIT value (Unix only) |
| [MX\_SETFKW](mx_get_set_fkw.md) | 84 | Set FKEYWAIT value (Unix only) |
| [MX\_TITLE](mx_title.md) | 85 | Get / set Window title |
| [MX\_ERRNOMSG](mx_errnomsg.md) | 86 | Get operating system error message by errno |
| [MX\_NOBUF](mx_no_flush_buf.md) | 87 | Disable stream file buffering |
| [MX\_FLUSHBUF](mx_no_flush_buf.md) | 88 | Flush stream file buffer |
| [MX\_FLSET](mx_flset.md) | 89 | Clone file channel (within [SBX](sbx.md)) (similar to M68 FLSET) |
| [MX\_BEVEL](mx_bevel.md) | 90 | Get / set bevel options (Windows only) |
| [MX\_SYSBCLR](mx_sysbclr.md) | 91 | Define BG color # to track system COLOR\_3DFACE  |
| [MX\_HOTKEY](mx_hotkey.md) | 92 | Enable / disable PolyShell hot keys |
| [MX\_ABOUT](mx_about.md) | 93 | Get license info (used by [ABOUT](about_lit.md).LIT) |
| [MX\_GETRC](mx_getrc.md) | 94 | Get current cursor position |
| [MX\_GETOFD](mx_getofd.md) | 95 | Windows Open File dialog (Windows only) |
| [MX\_SHELLEX](mx_shellex.md) | 96 | Shell Execute (open/print registered file type) |
| [MX\_MKDIR](mx_mkdir.md) | 97 | Create directory (Windows only) |
| MX\_ATE | 98 | Start ATE |
| [MX\_GETREG](mx_getreg.md) | 99 | Retrieve registry value (Windows only) |
| [MX\_PLAYSOUND](mx_playsound.md) | 100 | Play a sound file (Windows only) |
| [MX\_GETSW](mx_get_set_sw.md) | 101 | Get swap wait value (in ms) (Unix only) |
| [MX\_SETSW](mx_get_set_sw.md) | 102 | Set swap wait value (in ms) (Unix only) |
| [MX\_CLFLAGS](mx_clflags.md) | 103 | Get / set ashell command line switches |
| [MX\_GETPID](mx_getpid.md) | 104 | Get process ID (pid) |
| [MX\_CLIPBOARD](mx_clipboard.md) | 105 | Get / set clipboard (Windows only) |
| [MX\_OSVER](mx_osver.md) | 106 | Get operating system version |
| [MX\_USRMAP](mx_usrmap.md) | 107 | Get USRMEM module information |
| [MX\_USRLOD](mx_usrlod.md) | 108 | Load module (or variable) into USRMEM |
| [MX\_USRDEL](mx_usrdel.md) | 109 | Delete module from USRMEM |
| [MX\_USRSAV](mx_usrsav.md) | 110 | Save module from USRMEM to disk |
| [MX\_USRIO](mx_usrio.md) | 111 | Read / write USRMEM data directly |
| [MX\_AMOUSEXLT](mx_amousexlt.md) | 112 | Set AutoMouse translations (Windows only) |
| [MX\_MEMORY](mx_memory.md) | 113 | Change user partition size |
| MX\_MARSHAL | 114 | Marshall parameters for remote subroutine |
| [MX\_IXCALL](mx_ixcall.md) | 115 | Indirect XCALL |
| [MX\_INICLR](mx_iniclr.md) | 116 | Process an INI.CLR file |
| [MX\_MAPI](mx_mapi.md) | 117 | MAPI Send Mail (Windows only) |
| [MX\_FILEPOS](mx_filepos.md) | 118 | Get / set file pointer within stream  |
| MX\_WINCTL | 119 | Deprecated. Use [AUI\_CONTROL](aui_control.md). |
| [MX\_WINPTR](mx_winptr.md) | 120 | Prompt for Windows printer (Windows only) |
| [MX\_CHAINTO](mx_chainto.md) | 121 | Get / set chain-to on privilege violation |
| [MX\_SBRFLG](mx_sbrflg.md) | 123 | Get / set options that are normally set with SBR= in miame.ini |
| [MX\_ASHLOG](mx_ashlog.md) | 124 | Output STRING message to ashlog.log |
| [MX\_MCRS](mx_mcrs.md) | 125 | Retrieve information about last mouse click |
| [MX\_SINK](mx_sink.md) | 126 | Sink / unsink specified box |
| [MX\_ROUND](mx_round.md) | 127 | Get / set rounding factor |
| [MX\_GETIP](mx_getip.md) | 128 | Get IP address |
| MX\_GUIFLG | 129 | Deprecated. Use [AUI\_ENVIRONMENT](aui_environment.md). |
| [MX\_ASHFILE](mx_ashfile.md) | 130 | Retrieve startup command and/or name of A-Shell executable |
| [MX\_FILESTATS](mx_filestats.md) | 131 | Retrieve stats for specified path |
| [MX\_FTFORMAT](mx_ftformat.md) | 132 | Reformat filetime from [MX\_FILESTATS](mx_filestats.md) |
| [MX\_EXPFIL](mx_expfil.md) | 133 | Expand / reduce a file in place |
| [MX\_SYNC](mx_sync.md) | 134 | Invokes operating system sync command |
| MX\_EVENTWAIT | 135 | Deprecated. Use [AUI\_EVENTWAIT](aui_eventwait.md). |
| MX\_HTMLHELP | 137 | Deprecated. Use [AUI\_HTMLHELP](aui_htmlhelp.md). |
| [MX\_REGISTRY](mx_registry.md) | 138 | Registry operations |
| [MX\_AUTOPARENT](mx_autoparent.md) | 141 | Set parent controls |
| MX\_CMDKBD | 142 | Retrieve CMD file variables |
| [MX\_INFDEF](mx_infdef.md) | 143 | Get / set INFLD default TYPE codes |
| [MX\_DEBUG](mx_debug.md) | 144 | Get / set DEBUG level |
| MX\_UNLOADLIB | 145 | <reserved> |
| [MX\_LASTLNO](mx_lastlno.md) | 146 | Retrieve last line number of program |
| [MX\_FLINES](mx_flines.md) | 147 | Count lines, maximum line length in file |
| [MX\_GDICALC](mx_gdicalc.md) | 148 | Calculate String length or height |
| [MX\_WINSETTINGS](mx_winsettings.md) | 149 | Get / set A-Shell GUI Settings |
| [MX\_RELEASEKBD](mx_releasekbd.md) | 153 | Set / release keyboard hold |
| [MX\_DEFTABXYZ](mx_deftabxyz.md) | 154 | Set "3D" Tab attributes |
| [MX\_INSTNUM](mx_instnum.md) | 156 | Return instance number |
| [MX\_FINDWINDOW](mx_findwindow.md) | 157 | Find window by _title_ and/or _class_ and/or _handle_ |
| [MX\_GTOCT](mx_gtoct.md) | 160 | Convert hex or octal to decimal |
| [MX\_FILECHINFO](mx_filechinfo.md) | 161 | Returns info about open file based on file channel |
| [MX\_SETMEMFLAGS](mx_setmemflags.md) | 163 | Change memory module flags |
| [MX\_CHOOSECOLOR](mx_choosecolor.md) | 164 | Display color selection dialog |
| [MX\_CHOOSEFONT](mx_choosefont.md) | 165 | Display font selection dialog |
| [MX\_VERINODE](mx_verinode.md) | 167 | Verify file information   |
| [MX\_SETUSRNAM](mx_setusrnam.md) | 169 | Set / override user name |
| [MX\_BROWSEFOLDER](mx_browsefolder.md) | 170 | Selects a folder or other non-file object (such as a computer). |
| [MX\_GETSHELLPATH](mx_getshellpath.md) | 171 | Retrieves the path for a specified Windows directory ID. |
| [MX\_PWCRYPT](mx_pwcrypt.md) | 172 | Provides simple password encryption. |
| [MX\_SHORTCUT](mx_shortcut.md) | 173 | Create shortcut. |
| [MX\_STRCMP](mx_strcmp.md) | 174 | Compare two strings in various ways. |
| [MX\_CHKPCNET](mx_chkpcnet.md) | 176 | Checks network state of PC. |
| [MX\_AGWRAPPER](mx_agwrapper.md) | 177 | Wraps "raw" ATE commands. |
| [MX\_FILEHOOK](mx_filehook.md) | 178 | Establish file "hooks" on specific files and file events. |
| [MX\_AGINTERPROC](mx_aginterproc.md) | 179 | Send AG commands between instances of A-Shell/Windows. |
| [MX\_IATIMEOUT](mx_iatimeout.md) | 180 | Get / set the inactivity timeout period. |
| [MX\_CSVDELIM](mx_csvdelim.md) | 181 | Get / set the CSV delimiter character. |
| [MX\_SETERR](mx_seterr.md) | 182 | Triggers an ASB error. |
| [MX\_ATEFILEXFR](mx_atefilexfr.md) | 183 | Performs ATE/ATSD file transfer. |
| [MX\_CLRINBUF](mx_clrinbuf.md) | 184 | Clears input buffer and type ahead. |
| [MX\_MALLOCLIMIT](mx_malloclimit.md) | 185 | Get / set the [MALLOCLIMIT](malloclimit_sp.md). |
| [MX\_LASTPRTFIL](mx_lastprtfil.md) | 186 | Returns specs of the last file written by the PDFX printer driver. |
| [MX\_FILESOCK](mx_filesock.md) | 187 | Binds a TCP socket to a sequential file channel. |
| [MX\_WEBCACHE](mx_webcache.md) | 188 | Provides operations related to A-Shell's web cache feature. |
| [MX\_CALLSTACK](mx_callstack.md) | 189 | Returns information about the call stack.  |
| [MX\_LANGUAGE](mx_language.md) | 190 | Retrieves or sets the current language |
| [MX\_SRCHPATH](mx_srchpath.md) | 191 | Searchs for a file in the system path |
| [MX\_DYNSTRUCT](mx_dynstruct.md) | 192 | Implements A-Shell's dyanamic structures. |
| [MX\_DYNFUNC](mx_dynfunc.md) | 193 | Used for DYNFUNC-related utilities. |
| [MX\_GETWINFILEVERS](mx_getwinfilevers.md) | 194 | Retrieves version of a Windows DLL or executable. |
| [MX\_FILEVAR](mx_filevar.md) | 195 | Get / set the value of the file record number variable |
| [MX\_FILETIMES](mx_filetimes.md) | 196 | Get / set a file's modification, creation or access time. |
| [MX\_GETDPI](mx_getdpi.md) | 197 | Get monitor resolution  |
| [MX\_GETUPTIME](mx_getuptime.md) | 198 | Get system uptime |
| [MX\_DRAGDROP](mx_dragdrop.md) | 199 | Accept drag drop |
| [MX\_AS3264](mx_as3264.md) | 200 | Get A-Shell architecture (32- or 64-bit) |
| [MX\_TRANSCOPY](mx_transcopy.md) | 202 | Copies and translates a file |
| [MX\_RUNPROF](mx_runprof.md) | 203 | Generates a run profile log |
| [MX\_DIRCLEAN](mx_dirclean.md) | 204 | Counts or deletes files based on various filter attributes |
| [MX\_LOCALE](mx_locale.md) | 205 | Queries the native OS locale information. |
| [MX\_LOGDIR](mx_logdir.md) | 206 | Changes the location of the ashlog.log file directory. |
| [MX\_SYSLOG](mx_syslog.md) | 207 | Outputs text to the Linux syslog facility |
| [MX\_SETERSATZ](mx_setersatz.md) | 208 | Adds/updates ERSATZ devices without relaunch. |
| [MX\_EXITSTATUS](mx_exitstatus.md) | 209 | Get / set program exit status. |


