Improve parameter checking in NtCreateFile.