SetLastError

Sets the value of errno.

Library:LibC
Classification:Windows
Service:Library

Syntax

  #include <windows.h> 
   
  VOID SetLastError (
     DWORD   dwErrCode );
  

Parameters

dwErrCode

(IN) Specifies the error code to place in errno. For a list of defined values for errno, see POSIX and ANSI Return Values in Volume 1.

Remarks

The SetLastError function is not a preferred interface. If possible, use the functions found in dlfcn.h.

See Also