How to edit SETUPAPI.DLL

1. Download and install XVI 32. Also, download ModifyPE and put it in your SYSTEM32 directory.

2. Copy your original SETUPAPI.DL_ from i386 and uncompress it with the following command:

expand -r setupapi.dl_

3. Open the DLL in XVI and find the Windows version below that you're using:

 

Windows 2000 SP4 (5.0.2195.6622)
In the SP4 version of the DLL, you will see the hex byte sequence '55 8B EC FF 75'.
Replace this sequence with '33 C0 C2 30 00'.

Windows XP SP3 (5.1.2600.5512)
In the SP3 version of the DLL, you will see the hex byte sequence '8B FF 55 8B EC'.
Replace this sequence with '33 C0 C2 30 00'.

Windows 2003 SP2 (5.2.3790.3959)
In the SP2 version of the DLL, you will see the hex byte sequence '8B FF 55 8B EC'.
Replace this sequence with '33 C0 C2 30 00'.

 

4. Save the file and exit XVI.

5. Now, use ModifyPE to fix the header with the following command:

modifype setupapi.dll -c

6. Now, you may recompress the file or simply rename it with an underscore.

7. Rename the original SETUPAPI.DLL to SETUPAPI.BAK and drop the modified DLL back into i386.

Done.

You are now ready to modify system files like SYSOC.INF or SYSSETUP.INF.