Appinit_DLLs registry key

Hi,
I want to laod a DLL in all process and therefore I made a entry for
that DLL under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows
NT\CurrentVersion\Windows\appinit_dlls. But the problem is that this entry
is not accessed by NT while starting a new process. I monitored this through
regmon tool from sysinternals.com. From KB 197571, process must link to
user32.dll from where LoadLibrary is called for all DLLs listed under the
above key but this is not happening. The key is not accessed and hence DLL
is not loaded.
Any Idea about the problem.
Thanks
Ashish

Appinit_DLLs registry keyDid you reboot? You have to reboot before this will work correctly. This is one of the downsides of using this feature.

Scott Meeuwsen
High Level Software, Ltd.
----- Original Message -----
From: Ashish_Goyal
To: NT Developers Interest List
Sent: Thursday, April 27, 2000 8:54 AM
Subject: [ntdev] Appinit_DLLs registry key

Hi,
I want to laod a DLL in all process and therefore I made a entry for that DLL under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Windows\appinit_dlls. But the problem is that this entry is not accessed by NT while starting a new process. I monitored this through regmon tool from sysinternals.com. From KB 197571, process must link to user32.dll from where LoadLibrary is called for all DLLs listed under the above key but this is not happening. The key is not accessed and hence DLL is not loaded.

Any Idea about the problem.
Thanks
Ashish

Thanks, It worked.
Actually initially I entered full path and rebooted but from KB197571 I came
to know that NT reads only first 32 Characters and so I changed the name and
forgot to reboot. But this also shows problem with Regmon.exe since it does
not show that the AppInit_DLLs registry key is accessed(after rebooting
also). Does this indicate bug in Regmon.exe ?

Thanks
Ashish

-----Original Message-----
From: Scott Meeuwsen [mailto:xxxxx@highlevel.com]
Sent: Thursday, April 27, 2000 7:19 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Appinit_DLLs registry key

Did you reboot? You have to reboot before this will work correctly. This
is one of the downsides of using this feature.

Scott Meeuwsen
High Level Software, Ltd.

----- Original Message -----
From: Ashish_Goyal mailto:xxxxx
To: NT Developers mailto:xxxxx Interest List
Sent: Thursday, April 27, 2000 8:54 AM
Subject: [ntdev] Appinit_DLLs registry key

Hi,
I want to laod a DLL in all process and therefore I made a entry for
that DLL under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows
NT\CurrentVersion\Windows\appinit_dlls. But the problem is that this entry
is not accessed by NT while starting a new process. I monitored this through
regmon tool from sysinternals.com. From KB 197571, process must link to
user32.dll from where LoadLibrary is called for all DLLs listed under the
above key but this is not happening. The key is not accessed and hence DLL
is not loaded.

Any Idea about the problem.
Thanks
Ashish</mailto:xxxxx></mailto:xxxxx>

> Actually initially I entered full path and rebooted but from

KB197571 I came to know that NT reads only first 32 Characters
and so I changed the name and forgot to reboot. But this also
shows problem with Regmon.exe since it does not show that the
AppInit_DLLs registry key is accessed(after rebooting also).
Does this indicate bug in Regmon.exe ?

NT probably reads it once during startup and caches the info. This explains
why you have to reboot.

  • Danilo