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

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

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

Postby D.J.Peters » Nov 18, 2012 4:21

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?

Postby MichaelW » Nov 18, 2012 5:24

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: 1123
Joined: May 27, 2005 7:15
Location: FRANCE

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

Postby SARG » Nov 18, 2012 9:51

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

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

Postby D.J.Peters » Nov 18, 2012 19:50

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: 1496
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

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

Postby St_W » Nov 18, 2012 22:02

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.

Return to “Windows”

Who is online

Users browsing this forum: No registered users and 1 guest