# MX\_AGINTERPROC > [HTML Version](mx_aginterproc.htm) **xcall MIAMEX, MX\_AGINTERPROC, hwnd, agcmd, msg, status** MX\_AGINTERPROC (MIAMEX 179) provides for sending AG commands between instances of A-Shell/Windows. **Parameters** _hwnd_ (B4) \[in\] is the target window handle (use MX\_FINDWINDOW to get it) _agcmd_ ([Num](num.htm.md)) \[in\] is a value in the range of 1 to 99 corresponding to the AG\_xxx functions. _msg_ ([String](string.htm.md)) \[in\] is the text string normally following the AG\_xxx function (must be terminated with chr(127)\!\!\! _status_ (Signed [Num](num.htm.md)) \[out\] returns a status code indicating the success of the operation: | **Status** | **Meaning** | |------|------| | 1 | OK (target received and processed msg) | | 0 | No response from target | | \-1 | Target received msg but rejected it as invalid | | \-2 | Missing trailing chr(127) on message | | \-3 | Target HWND not found |