Why are HANDLE return values so inconsistent?
A historical question answer in a very interesting manner. If you really want to know why the CreateFile and OpenFile return INVALID_HANDLE_VALUE and CreateThread and CreateMutex return NULL on failure, read this article, bacause the standardization fails as both shoudl return same value on failure. ....have fun!!! and a nice weekend!!!