GetLastError

Obtains the current value of errno.

Library:LibC
Classification:Windows
Service:Library

Syntax

  #include <windows.h> 
   
  DWORD GetLastError ( void );
  

Return Values

Returns the current value of errno. For a list of defined values for errno, see POSIX and ANSI Return Values in Volume 1.

Remarks

The GetLastError function is not a preferred interface. If possible, use dlerror from dlfcn.h.

See Also