Obtains the current value of errno.
#include <windows.h> DWORD GetLastError ( void );
Returns the current value of errno. For a list of defined values for errno, see POSIX and ANSI Return Values
in Volume 1.
The GetLastError function is not a preferred interface. If possible, use dlerror from dlfcn.h.