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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:15:38+00:00 2026-06-14T20:15:38+00:00

I wanted to call one exported function in a Dll written using C Language

  • 0

I wanted to call one exported function in a Dll written using C Language from my chrome extensions. But not getting sufficient info on how to do that.

In Firefox I am using below mention code in my extensions js file to do so, but same is not working in chrome.

var InstallPath="C:\\FRViewPortExtn.dll";

Components.utils.import("resource://gre/modules/ctypes.jsm");


var lib = ctypes.open(InstallPath); 
/* Declare the signature of the function we are going to call */
passBrowserResizeData = lib.declare("SetViewPort",
ctypes.winapi_abi,
ctypes.void_t,
ctypes.int32_t,
ctypes.float32_t,
ctypes.int32_t,
ctypes.int32_t);

and calling using

passBrowserResizeData(6,7,8,9);

Please help me on how it can be done using chrome exteniosns

  • 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-06-14T20:15:38+00:00Added an answer on June 14, 2026 at 8:15 pm

    Place FRViewPortExtn.dll relative to manifest file and add the following code to manifest.json

    "plugins": [
        { "path": "FRViewPortExtn.dll", "public": true },
      ],
    

    Put this piece of code in your JS(content js\background js\extension js)

    var plugin = document.getElementById("pluginId");
    var result = plugin.passBrowserResizeData(6,7,8,9);  // call a method in your plugin
    

    For more information refer https://developer.chrome.com/extensions/npapi.html

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

Sidebar

Related Questions

I wanted to call Test1() Method Within WaitAndCallFunc() Function. Code: typedef void (*func)(); void
Wanted to know if there was a way one could query shelveset details from
I wanted to use 6 different textures on a cube, one per side, but
Basically, i wanted to return only one row and one column of result from
I wanted to know how fast is a single-inheritance virtual function call when compared
I wanted to know how its possible to call a javascript function , as
I have this class file call SMSHelper.cs First I just wanted to know is
just wanted to ask where I define initial class properties? From other languages I
How does one call a python module that has been installed, into the folder
I have a Wufoo form that I wanted to populate one of the fields

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.