Asked by:
How to add a new error code to Windows error code list?

General discussion
-
How do I add an error code to Windows' error code list
I know where the error list is, it is in:
C:\Windows\System32\en-US\netmsg.dll.mui
But Resource Hacker isn't able to find the file, It appears in CMD but not in Windows File Explorer or Resource Hacker, though it actually does exist
I tried copying it using the following command:
xcopy C:\Windows\System32\en-US\netmsg.dll.mui *PUT DIRECTORY HERE"
But I want to edit it directly so Windows can see the new error code,
Also, when I want to add a long error code (more than 999) Those entries actually exist, but Resource Hacker isn't able to see them in the MUI's message table.
How do I add a new error code to Windows' error code list, and without affecting the system predefined error code?
All replies
-
To add a new error code to the list, you need to modify the netmsg.dll.mui file, which contains the error messages. However, as you have mentioned, modifying this file can be challenging, and not all resource editing tools may be able to open it.
One possible solution is to use a resource editing tool that supports MUI files, such as Restorator or Resource Tuner. These tools allow you to modify resources in MUI files and add new error messages to the message table.
To add a new error message, you need to create a new message string in the message table and assign it a unique message ID. You can then use this message ID to reference the new error message in your application.
-
As a software developer and a part of the Windows team, I've noticed that there's no error code for "I'm so sorry that I just deleted your entire hard drive."
I think it's time we added this error to our list of codes. I think it would be very useful for people who have accidentally deleted their entire hard drive. The current options are "E0000001", which is kind of vague, or "E0000001: The file cannot be found", which is pretty clear but really doesn't seem like something you'd want to say out loud to your friend who just lost all their family photos and can't get them back.
I think this new code could be "E0000242". It sounds friendly and helpful, but also keeps it short and easy to remember. -
-
Here are the general steps that would need to be taken:
-
Identify the specific error condition that needs to be added to the error code list and determine the appropriate error code value.
-
Modify the appropriate Windows system files to include the new error code.
-
Update any documentation or help files that reference the error code list to include the new error code.
-
Test the new error code thoroughly to ensure that it is functioning as intended and does not introduce any new issues or bugs.
-
Submit the changes to Microsoft for review and validation.
-
Once approved, the changes will be incorporated into a future release of Windows.
It's worth noting that adding a new error code to Windows is not a trivial task and should only be attempted by experienced software developers with knowledge of the Windows operating system architecture and development processes.
-
-
(Code 3)” The device driver may be corrupted, or you are runningout of memory; the system is running low on system memory and may need to free up or add more memory. If the computer has insufficient memory to run the device, you can close some applications to make memory available.REGARDS : DRIVING TUTORS
-
-
-
The file extension ".mui" indicates that netmsg.dll.mui is a Dynamic Link Library (DLL) file. The netmsg.dll.mui file is a Dynamic Link Library, which is effectively a "guide book" that holds data and instructions for use by other files, such as executable (EXE) files like sapisvr.exe.
By allowing several applications (like Windows) to make use of the same netmsg.dll.mui file, developers hoped to reduce the amount of RAM needed to execute each programme.
-
To add a new error code to the Windows error code list, one would need to be a Microsoft developer with access to the Windows source code and development tools, and follow Microsoft's guidelines and procedures for modifying the Windows error code list, which may involve submitting a request or patch to Microsoft for review and inclusion in a future Windows update or release.
-