To get notification from launched service

Discussion in 'Mac Programming' started by chidambaram, Sep 18, 2008.

  1. macrumors member

    Mar 9, 2008
    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....
  2. Moderator emeritus


    Jun 15, 2000
    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.
  3. thread starter macrumors member

    Mar 9, 2008
    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?
  4. Moderator emeritus


    Jun 15, 2000
    I'm not following. If you can describe exactly what you want to do I might be able to help more.
  5. macrumors G5


    Nov 25, 2005
    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.

Share This Page