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 6006645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:34:10+00:00 2026-05-23T01:34:10+00:00

Here http://gplflash.sourceforge.net/gplflash2_blog/npapi.html Given code is switch(var) { case NPPVpluginNameString: *val = Example Plug-In; break;

  • 0

Here
http://gplflash.sourceforge.net/gplflash2_blog/npapi.html

Given code is

switch(var)
    {
        case NPPVpluginNameString:
            *val = "Example Plug-In";
            break;
        case NPPVpluginDescriptionString:
            *val = "A plug-in that demonstrates how NP_GetVal is implemented";
            break;
        default:
            ret = NPERR_INVALID_PARAM;
            break;
    }

But it does not take care about version.
How can I specify version in NPAPI plugin ?

  • 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-23T01:34:11+00:00Added an answer on May 23, 2026 at 1:34 am

    NPP_GetValue is only used for getting the plugin name and description; in order to get the mimetype and version there are extra entrypoints on linux.

    FireBreath uses this code: https://github.com/firebreath/FireBreath/blob/master/src/PluginAuto/X11/np_x11main.cpp#L24

    The mozilla docs have the following not-so-helpful docs: https://developer.mozilla.org/Talk:en/Gecko_Plugin_API_Reference/Plug-in_Side_Plug-in_API

    The entrypoint for plugin version on linux seems to be:

    extern "C" char * NP_GetPluginVersion()
    {
        return "1.0.0.75";
    }
    

    I’m not 100% certain if this works the same way on all browsers; you could always throw together a quick project in FireBreath and do some testing to see what version is reported by various browsers.

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

Sidebar

Related Questions

I'm using an HTML sanitizing whitelist code found here: http://refactormycode.com/codes/333-sanitize-html I needed to add
Here http://source.android.com/source/code-style.html#follow-field-naming-conventions it is stated that : Field Names Non-public, non-static field names start
I downloaded zthreads (found here: http://zthread.sourceforge.net/ ) and tried to compile but I get
From here: http://heanet.dl.sourceforge.net/project/teamlab/TeamLabinstall_EN.pdf For a mid-size portal it will be sufficient to deploy it
here http://developer.android.com/reference/android/net/TrafficStats.html it says int UNSUPPORTED The return value to indicate that the device
CODE HERE: http://jsfiddle.net/B7Y43/ Hello fello programmers, I have the following situation: My PHP-script generates
My source code is here: http://jsfiddle.net/2pkHL/ I can't figure out why it doesn't render
As seen here: http://www.evanmiller.org/how-not-to-sort-by-average-rating.html Here's the Ruby code itself, implemented in the Statistics2 library:
See here: http://code.google.com/p/ie7-js/ Does anyone have any experience or remarks about this javascript? Is
I found a code samples here: http://sturla.simnet.is/post/2008/09/22/Enable-proxy-in-IE.aspx But it's very complex and involves manipulating

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.