aldo hexosa wrote:
if(GetLastError() == 5 || GetLastError() == 4)
Why use constants? It would be much more readable to use:
if (GetLastError() == ERROR_TOO_MANY_OPEN_FILES || GetLastError() == ERROR_ACCESS_DENIED)
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb