How can I modify the DLL search order in Windows 2000 Service Pack 3 (SP3) and later?

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:

  1. Start a registry editor (e.g., regedit.exe).
  2. Navigate to the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager subkey.
  3. From the Edit menu, select New, DWORD Value.
  4. Enter a name of SafeDllSearchMode, then press Enter.
  5. Double-click the new value, set it to 1 to enable the preemptive path search, and press OK.
  6. Close the registry editor.
  7. Restart Windows for the change to take effect.

You can set the new value to 0 to restore the default search behavior.

Please or Register to post comments.

IT/Dev Connections

Las Vegas
September 30th - October 4th

Paul ThurottYou'll have the opportunity to experience:
• The Microsoft
Technology Roadmap
• Office 365 Implementation
• Hyper-V Optimizing
• Windows 8 Deployment
and much more!

Come See Paul Thurrott & Rod Trent in Person!

Early Registration Now Open

Upcoming Training

Mastering SharePoint 2013: Succeeding, Not Just Surviving

Building on the success of the “Mastering SharePoint 2010” seminars, the presenters have updated the content to cover the latest and greatest SharePoint product: SharePoint 2013. While SharePoint 2013 is relatively new on the marketplace, the presenters have been working with SharePoint 2013 for well over a year, and have implemented it with a number of clients in production environments.

Register Now

Current Issue

May 2013 - The NameTranslate object is useful when you need to translate Active Directory object names between different formats, but it's awkward to use from PowerShell. Here's a PowerShell script that eliminates the awkwardness.

CURRENT ISSUE / ARCHIVE / SUBSCRIBE

Windows Forums

Get answers to questions, share tips, and engage with the Windows Community in our Forums.