DllMain() seems unused in ntoskrnl.exe

Marcus Meissner marcus at jet.franken.de
Thu Jun 14 03:18:35 CDT 2012


On Wed, Jun 13, 2012 at 07:46:47PM +0200, Francois Gouget wrote:
> 
> The DllMain() function in ntoskrnl.exe appears to be unused: making 
> it static causes a compiler warning to that effect and removing it 
> entirely does not cause a compilation failure. Should it be removed or 
> is there a build issue with ntoskrnl.exe?

I added a FIXME() at the beginning, then typed "notepad" and it showed

fixme:ntoskrnl:DllMain called

So it is called. Not exactly sure, but I guess somehow via the loader magic.

Ciao, Marcus



More information about the wine-devel mailing list