PDA

View Full Version : To get notification from launched service




chidambaram
Sep 19, 2008, 12:22 AM
hi all,

I am working in Carbon C application(Mac OS 10.4.7)

I opened one application using LSOpenFSRef() function.

how can i get handle of the application which i launched?

Is that launched application will give any notification or call back event to my program?

thanks in advance....



kainjow
Sep 19, 2008, 05:31 AM
What are you trying to accomplish?

Launch Services functions are for launching apps. If you need more control, like accessing standard input/output, use POSIX functions.

chidambaram
Sep 19, 2008, 06:00 AM
ok sir...

I opened the file using LSOpenFSRef().

Using the syntax i got launched file's file system reference pointer value.

There is a GetProcessInformation() function to get the details of that process. It needs psn of the process as arguments.

so could i able to get the Process serial number of the process using file system reference value?

kainjow
Sep 19, 2008, 07:34 AM
I'm not following. If you can describe exactly what you want to do I might be able to help more.

gnasher729
Sep 19, 2008, 09:52 AM
hi all,

I am working in Carbon C application(Mac OS 10.4.7)

I opened one application using LSOpenFSRef() function.

how can i get handle of the application which i launched?

Is that launched application will give any notification or call back event to my program?

thanks in advance....

You get an FSRef for the launched application by reading the spec for LSOpenFSRef. I don't think it can be made any clearer than that.