0

I have a ActiveX code write by MFC ,it is c++ code to get client pc net interface information,and will exec some test like ping. Now,it should use in chrome plugin. How should i do? use npapi or ppapi ? can i use ActiveX c++ code?

Firemky
  • 163
  • 1
  • 1
  • 5

1 Answers1

3
  • PPAPI can't make arbitrary calls to native code, so it won't be useful for you.
  • NPAPI would work, but since NPAPI is deprecated in Chrome and slated for removal, it would be a bad idea to port to NPAPI for Chrome at this point.
  • No, you can't just use ActiveX in Chrome.

It's likely that Native Messaging in a Chrome extension is the best way to do what you are describing. There are a number of similar questions here already about getting OS information in Chrome that have more detailed answers.

smorgan
  • 20,228
  • 3
  • 47
  • 55