How to know abt all the application running on P800?
| Mon, 2005-04-04 06:56 | |
|
Hi All
How to implement a feature which does tell abt all the applications running on P800 (will show the names of all the apps running on P800 will be able to switch to any app running from there or close any app running. Plz do tell us if any of u cd help regaring this. hope to get a reply Thanx |
|






Forum posts: 276
TFindProcess proess;
TBuf8<100> buf;
while(proess.Next(repName) != KErrNotFound) {
buf.Copy(repName);
}
Now buf/repName will have the process name.......
Dennis
Today is a gift by GOD, that's why it is called the present.
Forum posts: 276
you can retrieve the process by
TFullName repName;
TFindProcess proess;
TBuf8<100> buf;
RProcess aProcess;
while(proess.Next(repName) != KErrNotFound) {
buf.Copy(repName);
aProcess.Open(proess);
TUidType typeID = aProcess.Type();
aProcess.Close();
}
You can check the typeID for App type uid......
Dennis
Today is a gift by GOD, that's why it is called the present.
Forum posts: 60
repname contains nothing
i used
RFs fs1;
RProcess aProcess;
RFile myFile1;
_LIT(KMyfile1,"c:\\documents\\savefile.dat");
fs1.Connect();
myFile1.Replace(fs1,KMyfile1,EFileWrite);
TFindProcess proess;
TFullName repName;
TBuf8<100> buf;
proess.Find(_L("Aname"));
while(proess.Next(repName) != KErrNotFound)
{
buf.Copy(repName);
myFile1.Write(buf);
aProcess.Open(proess);
TUidType typeID = aProcess.Type();
aProcess.Close();
}
myFile1.Close();
fs1.Close();
where Aname is my application name i tried with Aname.app n even as u said without using Find fn but nothing works
repName contains nothing
any other way
Forum posts: 60
repname contains nothing
i used
RFs fs1;
RProcess aProcess;
RFile myFile1;
_LIT(KMyfile1,"c:\\documents\\savefile.dat");
fs1.Connect();
myFile1.Replace(fs1,KMyfile1,EFileWrite);
TFindProcess proess;
TFullName repName;
TBuf8<100> buf;
proess.Find(_L("Aname"));
while(proess.Next(repName) != KErrNotFound)
{
buf.Copy(repName);
myFile1.Write(buf);
aProcess.Open(proess);
TUidType typeID = aProcess.Type();
aProcess.Close();
}
myFile1.Close();
fs1.Close();
where Aname is my application name i tried with Aname.app n even as u said without using Find fn but nothing works
repName contains nothing
do tell me whats wrong here
thanx
Forum posts: 60
repname contains nothing
i used
RFs fs1;
RProcess aProcess;
RFile myFile1;
_LIT(KMyfile1,"c:\\documents\\savefile.dat");
fs1.Connect();
myFile1.Replace(fs1,KMyfile1,EFileWrite);
TFindProcess proess;
TFullName repName;
TBuf8<100> buf;
proess.Find(_L("Aname"));
while(proess.Next(repName) != KErrNotFound)
{
buf.Copy(repName);
myFile1.Write(buf);
aProcess.Open(proess);
TUidType typeID = aProcess.Type();
aProcess.Close();
}
myFile1.Close();
fs1.Close();
where Aname is my application name i tried with Aname.app n even as u said without using Find fn but nothing works
repName contains nothing
do tell me whats wrong here
thanx
Forum posts: 276
I think before closing the file you have to do a flush to reflect the changes in your file.... so do the following before closing your file....
myFile1.Flush();
myFile1.Close();
Dennis
Today is a gift by GOD, that's why it is called the present.
Forum posts: 60
still its not working
what to do? any other way? tell me what shd be the arg to Find function?
thanx
Forum posts: 276
TBuf8<100> procName;
procName.Format(KProcName);
TFullName repName;
TFindProcess proess;
TBuf8<100> buf;
RProcess aProcess;
while(proess.Next(repName) != KErrNotFound) {
buf.Copy(repName);
if(buf.Find(procName) != KErrNotFound) {
aProcess.Open(proess);
RFs fs1;
RFile myFile1;
_LIT(KMyfile1,"c:\\documents\\savefile.dat");
fs1.Connect();
myFile1.Replace(fs1,KMyfile1,EFileWrite);
myFile1.Write(buf);
myFile1.Flush();
fs1.Close();
aProcess.Close();
break;
}
}
Are u getting any errors or just the file is blank ??
Dennis
Today is a gift by GOD, that's why it is called the present.
Forum posts: 26
There is an application launcher (I don't remember the real name) which then loads the DLL.
So you have to list all these loaders (all have the same name - something with ending ".EXE") and find the correct one for you.
If you want to have a little more information, try using "System Explorer", a very nice Series 60 Tool (don't know whether it works on UIQ).