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 PROTECTED]> Кому: Толя Макаров <[EMAIL PROTECTED]> Копия: Apple cocoa <cocoa-dev@lists.apple.com> Отправлено: Вторник, 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 myselfand 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! Почту!
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]