title: Detecting browser launch mode in a npapi plug-in
body: <p>I would like to detect whether my npapi based plug-in is launched in out of process mode(browser is in 64 bit mode) or in in-process mode(browser is in 32 bit mode). Current I use the following code to detect</p>
  
  <p>NSString *processName = [[NSProcessInfo processInfo] processName];</p>
  
  <pre><code>if (processName)
  {
      if ( !([processName compare:@"Safari" options:NSCaseInsensitiveSearch] == NSOrderedSame) 
          &amp;&amp; !([processName compare:@"firefox" options:NSCaseInsensitiveSearch] == NSOrderedSame)
          &amp;&amp; !([processName compare:@"firefox-bin" options:NSCaseInsensitiveSearch] == NSOrderedSame)
          &amp;&amp; !([processName compare:@"Google Chrome" options:NSCaseInsensitiveSearch] == NSOrderedSame))
      {
          // out of process 
      }
  }
  </code></pre>
  
  <p>This code would fail if the executable name of the browser fails. Is there another way of checking the browser launch mode?</p>