errors in code for winntp