This function returns the text of the most recent system error.
Arguments:
None
Return:
Text of the system error message
Usage:
This function would normally be called after a Win API function call that returned an error code. The returned error message could then be saved to the event log or service logfile.
ls_errmsg = of_GetLastError()
error.of_EventLog(error.EVENTLOG_ERROR_TYPE, ls_errmsg)