Launching an external application from within a NPAPI Plugin

Posted by Adam Cobb on Stack Overflow See other posts from Stack Overflow or by Adam Cobb
Published on 2010-05-17T08:19:30Z Indexed on 2010/05/17 13:20 UTC
Read the original article Hit count: 377

I am trying to work out why an NPAPI plugin I have written, which works fine in terms of performing operations triggered via Javascipt calls, cannot use CreateProcess() or ShellExecute() to launch an application from a path specified via the Javascript call.

I can seemingly use either of these methods and they return success, i.e. no error code. But the application just does not launch. I have tried modifying the parameters used when calling them, to create new process group etc. But seemingly with no effect.

I know this may seem like a bit of a security risk, but for the very specific purpose we wish to use it for it shouldn't be a problem.

Thanks.

© Stack Overflow or respective owner

Related posts about npapi

Related posts about plugins