[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] Appl_search cannot return APP_SHELL



Hi,

I am trying to find out which desktop is installed on the Atari by using Appl_Search() function.
( should be Desktop on mine).
However, the search for APP_DESK returns nothing.
So I use APP_FIRST and APP_NEXT to step through all the running app.
I find none of the app found are of type APP_SHELL on the stype output.

Am I doing something wrong ?
BTW, XASYS is stype 0x20 ??? which the I cannot find what it means.

The code fragment I used is this:
ret = appl_search(0, parent_name, &stype, &parentid);
printf("[%i] app =[%s] [%i] [%s] [%x=%i]\r\n", ret, parent_name, (short) parentid, stype&APP_SHELL ? "desktop": "app", stype, stype);
while (ret) {
ret = appl_search(1, parent_name, &stype, &parentid);
if (ret) 
printf("[%i] app =[%s] [%i] [%s] [%x=%i]\r\n", ret, parent_name, (short) parentid, stype&APP_SHELL ? "desktop": "app", stype, stype);
}

Output is like this:
[1] app =[AESSYS ] [3] [app] [1=1] [1] app =[XASYS ] [5] [app] [20=32] [1] app =[TOSWIN2 ] [10] [app] [2=2] [1] app =[TASKBAR ] [9] [app] [2=2] [1] app =[PHWEATHR] [8] [app] [2=2] [1] app =[COPS ] [6] [app] [4=4] [1] app =[DESKTOP ] [40] [app] [2=2] [1] app =[SYNCTIME] [205] [app] [2=2]