When you work with software exceptions, you must create your own 32-bit exception codes. These codes follow a specific format (discussed in Chapter 24 of Programming Applications for Microsoft Windows, Fourth Edition). To make creating these codes easier, I use the MAKESOFTWAREEXCEPTION macro.