Fix INVALID_HANDLE_VALUE constant
Cosmetic fixes