Re: Process app.
Re: Process app.
- Subject: Re: Process app.
- From: Jean-Daniel Dupas <email@hidden>
- Date: Tue, 1 Jul 2008 11:49:19 +0200
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);
}
return 0;
}
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