Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chidambaram

macrumors member
Original poster
Mar 9, 2008
67
0
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

Moderator emeritus
Jun 15, 2000
7,958
7
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

macrumors member
Original poster
Mar 9, 2008
67
0
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

Moderator emeritus
Jun 15, 2000
7,958
7
I'm not following. If you can describe exactly what you want to do I might be able to help more.
 

gnasher729

Suspended
Nov 25, 2005
17,980
5,566
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.