setlasterror
Description:
setlasterror sets the last error code to a specified value. This is intendend to be used by libraries to inform the calling process about the success of any library operation. Libraries must use error codes within a predefined range otherwise they will confuse the calling process when the error codes interfere with those produced by the kernel.
Function Prototype:
void setlasterror (BYTE error);
Parameters:
error
The error code to be put as the process last error code. Libraries use an error code between 0x60-0x8F for own error codes. This function does not need to be called when no error occurred to set the error code 0x00 as the kernel always resets the last error code to 0x00 whenever a process retrieved the last error code with getlasterror.
Return Values:
(This function does not have a return value in the current kernel release.)