Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 804935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:59:55+00:00 2026-05-14T23:59:55+00:00

I am trying to work out why an NPAPI plugin I have written, which

  • 0

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.

Using Windows XP Pro SP3, Firefox 3.5 and the following code:

ZeroMemory( &si, sizeof(si) ); 
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) ); 
if( CreateProcess( NULL, wFileName, NULL, NULL, FALSE, 
                  CREATE_NEW_CONSOLE | CREATE_NEW_PROCESS_GROUP, 
                  NULL, NULL, &si, &pi ) )
{ 
    bSuccess = true; // Close process and thread handles.      
    WaitForSingleObject(pi.hProcess,INFINITE); 
    CloseHandle( pi.hProcess ); 
    CloseHandle( pi.hThread ); 
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T23:59:56+00:00Added an answer on May 14, 2026 at 11:59 pm

    Without any code (snippet) to chew on it is really hard to give valuable hints:

    I don’t see why this should not work on XP.
    Are you sure that the CreateProcess()/ShellExecute() calls succeed?

    Things to try:

    • Does the ShellExecute() call also succeed if you pass an invalid path?

    • What happens if you use a hard-coded path (e.g. the path to notepad.exe, a path without spaces, etc.)?

    • Check with ProcessMonitor (former filemon) if the executable file of the application you are trying to launch is acceessed.

    Maybe the executable doesn’t launch because a depending DLL is not found.
    Keep in mind that the working/current directory is the directory of the browser executable when launching the application from within a plugin.

    Therefore DLLs that are located in the application folder might not be found.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to work out the best practice for my problem. I have
Trying to work out distance between two points (lat & lng) I have an
I´m trying to work out a problem with registering my configuration classes. I have
I have been trying to work out how the text in the nav and
I'm trying to work out how this can be achieved using jQuery, I have
I'm trying to work out which method would be faster (if either would be?).
Im trying to work out the best way scale my site, and i have
I'm trying to work out how to write a store procdure which returns a
I have been trying to work out the correct way of blocking access to
I have been trying to work out an issue with Sagepay server intergration into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.