Navigation: Subroutines > MIAMEX
MX_INSTNUM
xcall MIAMEX, MX_INSTNUM
(Windows) MX_INSTRUM (MIAMEX 156) returns your "instance number." This is the count of how many A-Shell/Windows sessions are running on your PC.