• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting the host
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the host


  • Subject: Re: Getting the host
  • From: Marc Poirier <email@hidden>
  • Date: Thu, 4 Sep 2003 11:58:42 -0500 (CDT)

On Wed, 3 Sep 2003, Jim Wintermyre wrote:

> Or, you can call GetProcessInformation and look at the
> processSignature field of the ProcessInfoRec. This is the app's
> creator code (which should be unique and registered with Apple). If
> you had to hard-code something to behave differently under a
> particular host app, this check would be safer since it's much less
> likely to change than the actual name of the app.

That's a neat idea, thanks for sharing. Although beware that this will
fail in some cases, since it's possible for a process to have no
associated creator code, if an executable is not packaged in a bundle with
Info.plist and PkgInfo.

Marc
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Getting the host (From: Jim Wintermyre <email@hidden>)

  • Prev by Date: Re: Drawing an EQ curve
  • Next by Date: Re: Getting the host
  • Previous by thread: Re: Getting the host
  • Next by thread: Re: Getting the host
  • Index(es):
    • Date
    • Thread