Re: Process app.
Re: Process app.
- Subject: Re: Process app.
- From: Jean-Daniel Dupas <email@hidden>
- Date: Tue, 1 Jul 2008 16:47:19 +0200
I don't understand what "on and does not works" mean ?
And also what do you mean by "loginwindow.app has finished its work".
loginwindow is a process managed by launchd and should be considere as
an implementation details.
The only public "loginwindow API" I know is a couple of Apple Event to
logout , shutdown and restart the machine.
loginwindow has finish its works when your machine is off, so I really
don't understand what "has finished its work" mean.
If you want to know when an user is logged-on, there is some public
and documented way to do it.
Le 1 juil. 08 à 12:20, Толя Макаров a écrit :
Thanks for the example. But GetBSDProcessList shows in the list
"loginwindow", when it's on and doesn't work. The same works ps -ef.
----- Исходное сообщение ----
От: Jean-Daniel Dupas <email@hidden>
Кому: Толя Макаров <email@hidden>
Копия: Apple cocoa <email@hidden>
Отправлено: Вторник, 1 июль 2008, 12:49:19
Тема: Re: Process app.
Le 1 juil. 08 à 11:24, Толя Макаров a écrit :
Jean-Daniel Dupas.
I
want to know if loginwindow.app is started up at the moment, after
this my program enters a password. Sometimes I enter password myself
and my program should know that loginwindow.app has finished its
work.
Makarov Anatolii.
That said, using this snippet with the QA sample code it see
"loginwindow" in the output:
int main(int argc, char **argv) {
size_t procCount = 0;
kinfo_proc *procList = NULL;
GetBSDProcessList(&procList, &procCount);
int i;
for (i = 0; i < procCount; i++) {
printf("%s\n", procList[i].kp_proc.p_comm);
}
return0;
}
Вы уже с Yahoo!? Испытайте обновленную и
улучшенную. Yahoo! Почту!
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden