Platform SDK: Debugging and Error Handling

Error Handling Functions

The following functions are used with error handling.

Function Description
Beep Generates simple tones on the speaker.
FatalAppExit Displays a message box and terminates the application when the message box is closed.
FlashWindow Flashes the specified window one time.
FlashWindowEx Flashes the specified window.
FormatMessage Formats a message string.
GetLastError Retrieves the calling thread's last-error code value.
MessageBeep Plays a waveform sound.
SetErrorMode Controls whether the system will handle the specified types of serious errors, or whether the process will handle them.
SetLastError Sets the last-error code for the calling thread.
SetLastErrorEx Sets the last-error code for the calling thread.