Injecting a DLL Using the Registry

If you’ve been using Windows for any length of time, you should be familiar with the registry. The configuration for the entire system is maintained in the registry, and you can alter the behavior of the system by tweaking its settings. The entries I’ll discuss are under the following key:

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

The following window shows what the entries in this key look like when viewed with Registry Editor:

Injecting a DLL Using the Registry

The value for the AppInit_Dlls key might contain a single DLL filename or a set of DLL filenames (separated by spaces or commas). Because spaces delimit filenames, ...

Get Windows® via C/C++, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.