A. With Win2K SP3 and later, you can force the OS to check the path variable for DLLs before the OS uses the standard search paths, including the working folder. This modification might be useful if, for example, you're running a program from a network drive and you want the OS to check your local machine for DLLs before it checks the network share. To enable this functionality, perform the following steps:
- Start a registry editor (e.g., regedit.exe).
- Navigate to the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager subkey.
- From the Edit menu, select New, DWORD Value.
- Enter a name of SafeDllSearchMode, then press Enter.
- Double-click the new value, set it to 1 to enable the preemptive path search, and press OK.
- Close the registry editor.
- Restart Windows for the change to take effect.
You can set the new value to 0 to restore the default search behavior.