getLastExtFunctionCallError

getLastExtFunctionCallError(): Integer;

The getLastExtFunctionCallError method of the Process class returns the value of the error code set by the last external function call made by the current process.

This corresponds to the value returned by a call to the GetLastError Windows API.