Group: Error Handling - Library: kernel32
Sets the last-error code for the calling thread. This function is intended primarily for dynamic-link libraries (DLL). Calling this function after an error occurs lets the DLL emulate the behavior of the Win32 API.
If you are defining an error code for your application, be sure that your error code does not conflict with any system-defined error codes.
Setting the last-error code for the FoxPro
VOID SetLastError(
DWORD dwErrCode // per-thread error code
);
DECLARE SetLastError IN kernel32 INTEGER dwErrCode
dwErrCode [in] Specifies the last-error code for the thread
This function does not return a value