Sets the calling thread's last error field. All RT functions call this function internally on exit if they fail.
VOID SetLastRtError(
    DWORD dwErrorCode
);
dwErrorCode 
Although the dwErrorCode parameter is a 32-bit value, in the current implementation only 16 bits of the value are stored. It is not intended that this API may be used to pass user-defined values.
| Versions | Defined in | Include | Link to | 
|---|---|---|---|
| INtime 3.0 | intime/rt/include/rtbase.h | rt.h | rt.lib |