I'm targeting MicroSoft Windows as OS and as far as I know, NPAPI has
no methods to read registry values and any call to Microsoft SDK
registry functions immediately disables the plugin.
Obviously "GetCurrent" only gets the installation path of Mozilla
executable.
I need to have a installation path in order to acquire a configuration
file that gives the plugin additional info on where a custom cache
folder is located.
I'm pretty sure that ADOBE plugins use custom cache folders so there
must be a way to customize the installation as much as you want and
retrieve the information.
What I'm missing. I have to integrate NPAPI with XPCOM... and how?
Please, I have to go a step further from the basic "Hello World"
plugin... and I'm getting a little pissed at the obscure documentation
and useless examples...
You can use GetModulePath(GetModuleHandle(), ...) on Windows.
Regards,
Georg
Thank you Greg...
I must also thank Martin that privately pointed to me the fact that
registry functions SHOULD work.
Checking my code again I've discovered a bug... the weird fact is that
the error shoud have been severe enough to cause a crash, but instead
it simply caused the plugin to not load, thus making me believe that
was some security issue.
So I have to correct my previous statement: NPAPI plugins CAN read the
registry. Sorry for the misinformation.