How Do I Fetch the Name of the Current Context? (Magic xpa 3.x)
When communicating between contexts, a program will often need to know its own name, so that it can identify itself to other programs.
To fetch the context name, use the CtxGetName() function. There are no parameters. It returns an alpha string, which can be up to 128 characters long. (the context names assigned by Magic xpa are alpha strings of numbers, about 16 characters long, but the programmer can rename the context using up to 128 characters).
The Online Samples project (program MT01)