Consultor Eletrônico



Kbase P91669: How does Windows search for a DLL?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   8/24/2004
Status: Unverified

GOAL:

How does Windows search for a DLL?

FACT(s) (Environment):

Windows

FIX:

When 32-bit operating systems, windows looks for a dll in this order:

If a path is specified, the dll is searched for in that directory otherwise it will look in the following places in this order:

1. The .exe file directory.
2. The current directory.
3. The %SystemRoot%\SYSTEM32 directory.
4. The %SystemRoot% directory.
5. The directories in your Path.

If the DLL is listed as a KnownDLLs at HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager as a type REG_SZ entry with a Value Name of the DLL without the extension and a data value of the DLL with the .DLL extension, then the search is:

1. The %SystemRoot%\SYSTEM32 directory.
2. The .exe file directory.
3. The current directory.
4. The %SystemRoot% directory.
5. The directories in your Path.