Error: “The procedure entry point UnmapAndCloseFile could not be located in the dynamic link library SETUPAPI.dll” when attempting to run RIPrep.exe on Windows XP or Windows Server 2003

System Requirements:

  • Windows XP Professional, SP2, SP3
  • Windows Server 2003 SP1, SP2

The Problem:

When you attempt to run the Remote Installation Service (RIS) image preparation tool (RiPrep.exe) on a Windows XP or Windows Server 2003 system with the latest service pack you receive the following error message.

riprep.exe – Entry Point Not Found
The procedure entry point UnmapAndCloseFile could not be located in the dynamic link library SETUPAPI.dll

Error: "The procedure entry point UnmapAndCloseFile could not be located in the dynamic link library SETUPAPI.dll"

This error is generated despite having the latest build of RIPrep.exe from Windows 2000 Server SP4 – 5.0.2195.6685 at the time of writing. If you do not have this build of RIPrep you should obtain the current version from Service Pack 4 and update your RIS host to SP4 before continuing.

More Information:

Microsoft’s XP SP2 secure code initiative and several years worth of code development has seen some fundamental changes in the standard setup api used on XP and Server 2003 systems. The problem is caused quite obviously by the lack of the entry point UnmapAndCloseFile in the setupapi.dll.

The Fix

Very simply, you need to give riprep.exe access to a version of the dll with that entry point.

  1. Go to your Windows 2000 Remote Installation Server (ensure that it is SP4)
  2. Navigate to %SystemRoot%\System32
  3. Copy the file setupapi.dll into the <RISPath>\Admin\i386 folder
    e.g. E:\RemoteInstall\Admin\i386
  4. setupapi.dll from Windows 2000 SP4 (version 5.0.2195.6622 as of writing) will now be next to the riprep.exe
    SetupAPI.dll version info
  5. When you run RIPrep from the \\<server>\REMINST\Admin\i386 folder, the version of setupapi.dll in this folder will be used as a higher precedent to the version in the Windows XP or Windows Server 2003 %SystemRoot%\System32 folder, and RIPrep will be able to load correctly.

Microsoft Paint Update

There is an update for Windows NT 4.0 and Windows 95 which updates Paint to the Windows 98 version.

The patch is designed to correct incompatibilities between Microsoft Office 97 and the original 32-bit version of Paint.

System Requirements:

  • Windows 95, A, B, C
  • Windows NT 4.0 Workstation, SP1, SP2, SP3, SP4, SP5, SP6, SP6a
  • Windows NT 4.0 Server, SP1, SP2, SP3, SP4, SP5, SP6, SP6a
  • Windows NT 4.0 Terminal Server, SP1, SP2, SP3, SP4, SP5

The update will fix incompatibilities in:

  • Microsoft Office 97, SP1, SP2
  • Microsoft Office 2000, SP1, SP2
  • Microsoft Office 2002 (XP), SP1

The Problem:

There is a incompatibility between Paint and Office 97’s Graphics Import filters. If you try and open a non .BMP or .PCX image in Paint you will recieve the following error:

This program has performed an illegal operation and will be shut down.
If the problem persists, contact the program vendor.

If you click Details, you receive an error message similar to the Following message:

MSPAINT caused an invalid page fault in module MSPAINT.EXE at
0137:0042d3fe.

Patch Installation:

Windows 95 FAT or FAT 32:

  1. Download the Paint95.exe file from Q162500.
  2. Double-click the file you downloaded in step 1 to expand it.
  3. Copy the Mspaint.exe file to the Program Files\Accessories folder.
  4. Copy the three .dll files to the Windows\System folder.
  5. Restart your computer.

Windows NT 4.0 FAT:

  1. Download Paintnt.exe from Q162500.
  2. Double-click the file you downloaded in step 1 to expand it.
  3. Copy the .exe and .dll files to the Winnt\System32 folder.
  4. You will not be able to copy the Msvcrt.dll file while you are in a Windows NT session. Boot your computer from a MS-DOS boot disk and then copy the file.
  5. Restart your computer.
  6. Re-apply the latest service pack.

Windows NT 4.0 NTFS:

  1. Download Paintnt.exe from Q162500.
  2. Download the InUse utility from here
  3. Double-click the file you downloaded in step 1 to expand it.
  4. Copy the .exe and .dll files to the Winnt\System32 folder.
  5. You will not be able to copy the Msvcrt.dll file while you are in a Windows NT session. Open a command prompt and browse to the InUse.exe’s folder.
  6. Type inuse.exe Drive:\Location\msvcrt.dll Drive:\Winnt\System32\msvcrt.dll
    Where Drive is the drive letter which the new msvcrt.dll presides (e.g. C:) and Location is the directory which the msvcrt.dll file is found (e.g. \temp).
    e.g. inuse.exe c:\temp c:\winnt\system32\msvcrt.dll
  7. Restart your computer. The file will be unloaded from Memory, and on restart will be replaced before it is re-loaded into the Page File.
  8. Re-apply the latest service pack.

What changes:

Paint will be updated to the Windows 98 version. This includes the compatibility fixes as well as some minor program improvments.

There is a bug in the update which causes problems when maximiing the window. The bug will not effect system stability or the performance of Paint, and is an aestetic error only.

The patch will also update the Icon that Paint uses to the Windows 98 version.

Anime Emoticons

For anyone who has ever IM’d with me, you’ll know that I don’t use the integrated emoticons, preferring to use Anime ones. For those that want to know, this is a list of some of the main ones

Emoticon Description

^_^

Smile (Well clearly!)

^^

Hedonistic version of the above

o_o

Concern, nervousness, or shock.

O_O

More of the above

o_O

Left eyebrow raising – inquisitiveness, or general confusion.

O_o

Right eyebrow raising – inquisitiveness, or general confusion.

@_@

Dizzy, disoriented, unconscious, or confused – Also peeking through binoculars

^_&

Black eye

x_x

Show some respect for the dead

z_z

C:Amie is sleeping, shhh

-_-

Exasperated

>_<

Angry

>_>

Looks left

<_<

Looks right

>_> <_<

Looks left then right – read shifty

h_h

Being perverse – not that I would never use this of course >_> <_<

*_*

Euphoria, fascination, basically starry-eyed.

9_9

Rolling eyes

6_6

Looking at the floor

£_£

Thinking about Money

^_~ / ^_-

Wink

;_;

Crying

._.

Timidity

#_#

The syndrome know as waffle face – C:Amie fell asleep on the keyboard (again)