Viktor, > [ what if another thread kicks in between function call and GetLastError() > call...? ]
According to MSDN the return value is the calling thread's last-error code http://msdn.microsoft.com/en-us/library/ms679360(VS.85).aspx so it should be thread safe. Chen. _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour