You receive an "Explorer.EXE - Entry Point Not Found - The procedure entry point SHCreateThreadRef could not be located in the dynamic link library Shlwapi.dll" error message after you install the MS04-038 security update
This article discusses how to recover a computer that reports an error after you apply the security update MS04-038.
When you install security update MS04-038 on Microsoft Windows XP, you receive the following error message after your computer starts:
Explorer.EXE - Entry Point Not Found - The procedure entry point SHCreateThreadRef could not be located in the dynamic link library SHLWAPI.dll
This error occurs when MS04-038 is installed on a computer with a failed Windows XP Service Pack 2 (SP2) installation. Typically, if Windows XP SP2 installation fails, an automatic rollback occurs that returns the computer to the pre-Windows XP SP2 installation state. If automatic rollback does not occur, the service pack recovery process will partially uninstall Windows XP SP2 after you restart your computer. (For example, automatic rollback may not occur if a power failure occurs during Windows XP SP2 installation.) After you restart the computer again, you receive a message that prompts you to use Add or Remove Programs in Control Panel to manually remove the remnants of the failed installation.
If you do not follow this recommendation, and you do not use Add or Remove Programs to remove the remnants of the failed installation, your computer will have pre-Windows XP SP2 files, and your registry will contain Windows XP SP2 information.
If your computer has pre-Windows XP SP2 files and your registry contains Windows XP SP2 information, Windows Update or Automatic Updates offers the Windows XP SP2 version of the MS04-038 security update.
To recover your computer, follow these steps:
Start your computer and log on as you typically do.
Note If your computer will not start correctly, start the computer in Safe mode. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
315222 A description of the Safe Mode Boot options in Windows XP
When you receive the error message, press CTRL+SHIFT+ESC to open Task Manager. You can safely ignore any additional error messages that may appear.
On the File menu, click New Task (Run...).
In the Open box, type control appwiz.cpl, and then click OK. You can safely ignore any additional error messages that may appear.
Note If the Add or Remove Programs tool (Appwiz.cpl) does not open, type the following line in the New Task (Run...) box to remove the Internet Explorer fix, and then go to step 5:
In the Add or Remove Programs window, click Windows XP Hotfix – KB834707, click Remove, and then follow the instructions.
When the Finish button becomes available, click Finish, and then let your computer to restart, even if it seems that the removal process is not complete. You can safely ignore any messages about additional software or hotfixes that are installed during this process.
Warning Although your computer may successfully start without error messages, your computer is still in an incomplete Windows XP SP2 state. You must complete the remaining steps and reinstall Windows XP SP2.
After your computer restarts, click Start, and then click Control Panel.
Click Add or Remove Programs, click Windows XP Service Pack 2, click Remove, and then follow the instructions. If you receive a message about software that you may have installed after you installed Windows XP SP2, make a note of the titles. You may have to reinstall these products after you reinstall Windows XP SP2.
Note If you cannot access Add or Remove Programs, use Task Manager as described in steps 1, 2, and 3. Remove Windows XP Service Pack 2 by typing the following in the New Task (Run...) box:
After Windows XP SP2 has successfully installed, visit the Windows Update Web site and install any critical updates.
If this procedure does not work, you can perform an in-place reinstallation. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
315341 How to perform an in-place upgrade (reinstallation) of Windows XP
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Q1: I do not think my computer is in an "incomplete Windows XP SP2 state." How can I know for sure?
A1:. After you successfully remove Windows XP Hotfix – KB834707, use one of the following methods to determine whether your computer is in an incomplete Windows XP SP2 state.
Check Add or Remove Programs for the presence of Windows XP SP2. If Windows XP SP2 is listed, go to step 2. If Windows XP Service Pack 2 is not listed, Windows XP Service Pack 2 is not installed.
Determine the version of the Lsass.exe file that is in the %Windir%\System32 folder. To do this:
Click Start, click Search, and then click All Files and Folders.
In the All or part of the file name box, type %windir%\system32\lsass.exe, and then click Search.
Right-click the Lsass.exe file, click Properties, and then click the Version tab.
Note The Lsass.exe file may appear as "Lsass" without an extension.
If the version number of the Lsass.exe file is earlier than 5.1.2600.2096, and Windows Service Pack 2 appears in the Add or Remove Programs tool, your computer is in an incomplete Windows XP SP2 state.
Click Start, and then click Run, type winver, and then click OK.
If the version is listed as "Version 5.1 (Build 2600.xpsp_sp2_rtm.040803-2158: Service Pack 2" or a later version, you have the correct installation of Windows XP SP2. However, if the version has a number that begins with a 01, a 02, or a 03, your computer is in an incomplete Windows XP SP2 state. Additionally, if any number that is less than 040803 appears after "xpsp2", such as "Build 2600.xpsp2.030422-1633: Service Pack 2," your computer is in an incomplete Windows XP SP2 state.
For additional information about Windows XP SP2, click the following article number to view the article in the Microsoft Knowledge Base:
322389 How to obtain the latest Windows XP service pack