Use ERROR_NT, not ERROR_DOS as Andrew Bartlett pointed out.