Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The following table shows the Error functions and the purpose of each.

Programming element Description

FormatMessage

This function formats a message string.

GetLastError

This function returns the calling thread's last-error code value.

SetLastError

This function sets the last-error code for the calling thread.