Use the mmioGetLastError function to return the last error condition stored in the system for this process. This function assists you in obtaining additional information about the failing condition for error routine analysis.
Note: This function only works if you have an MMIO handle.