No AppInit_DLL key in the registry on my XP SP3 box?

Windows specific questions.
Post Reply
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

No AppInit_DLL key in the registry on my XP SP3 box?

Post by D.J.Peters »

Do you have the AppInit_DLL key in your registry ?

Joshy
MSDN wrote:To create a class that can be used in every process, create the window class in a .dll and load the .dll in every process. To load the .dll in every process, add its name to the AppInit_DLLs value in following registry key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Windows

Whenever a process starts, the system loads the specified .dll in the context of the newly started process before calling its entry-point function. The .dll must register the class during its initialization procedure and must specify the CS_GLOBALCLASS style.
MichaelW
Posts: 3500
Joined: May 16, 2006 22:34
Location: USA

Re: No AppInit_DLL key in the registry on my XP SP3 box?

Post by MichaelW »

For my Windows 2000 SP4 system and my Windows XP SP3 system an AppInit_DLLs key is present, but there is no value assigned to it.
SARG
Posts: 1763
Joined: May 27, 2005 7:15
Location: FRANCE

Re: No AppInit_DLL key in the registry on my XP SP3 box?

Post by SARG »

Under W7 also empty
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Re: No AppInit_DLL key in the registry on my XP SP3 box?

Post by D.J.Peters »

If no global process wide control classes are registered may be it isn't needed at all.

First i was thinking the class style CS_GLOBALCLASS is a key feature but looks like i'm misunderstood it.

thank you

Joshy
St_W
Posts: 1626
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: No AppInit_DLL key in the registry on my XP SP3 box?

Post by St_W »

Using the (deprecated!) AppInit_DLL Registry-Key you can inject a DLL in every process that gets loaded.

CS_GLOBALCLASS is something rather different: you specify this wndclass-attribute, if you want your wndcls to be application (process) global.

Of course you can combine both features to register a WndCls in every process getting loaded.
Post Reply