[vlc-devel] [PATCH]Fixes for mozilla and activex plugins- ticket #2062

Geoffroy Couprie geo.couprie at gmail.com
Wed Oct 29 22:52:29 CET 2008

On Wed, Oct 29, 2008 at 7:46 PM, Rémi Denis-Courmont <rem at videolan.org> wrote:
> Le mercredi 29 octobre 2008 20:31:55 Geoffroy Couprie, vous avez écrit :
>> I need _Win32_WINNT >= 0x502 because SetDllDirectory was introduced
>> with XP SP1. I had to add winbase.h and the #define before everything
>> in the mozilla plugin because the mozilla sdk headers define
>> _WIN32_WINNT to 0x400 (something like NT 4?). This was tested by
>> replacing the axvlc.dll and npvlc.dll from 9.4 (plugins not working)
>> by axvlc.dll and npvlc.dll from the 0.9-bugfix with these patches (and
>> it works).
>> Please review ;)
> If I understand MSDN right, the DLL directory is an application, meaning
> process, setting. In that case, it does not sound right that browser plugins
> would touch it - or do they run in their own process?

They run in the same process as the browser. I could do a
SetDllDirectory(NULL) to come back to the original search path after
the plugin was used. From what I saw while googling, using
SetDllDirectory will work, but I don't know enough about the ie or ffx
internals to say that it's right.

More information about the vlc-devel mailing list