! INVALID_HANDLE is now -1 instead of 0