Returns the reference number of an application. Knowing an application name, it is possible to find its reference number using the MidiGetNamedAppl function. It is also possible to find the name of an application via its reference number using the MidiGetName function.
pascal short MidiGetNamedAppl (MidiName name);
name
- the application name.
The result is the reference number of the application.
Find the reference number of the "MidiShare" pseudo-application.
short r; r = MidiGetNamedAppl("MidiShare");/* MidiShare reference is always 0 */
MidiShare was originally developed for Pascal on the Macintosh. Consequently, in C, all strings passed as arguments of a MidiShare function must be Pascal strings. In the previous example, one must write :
MidiGetNamedAppl("\pMidiShare");