Where and how does windows handle its user logon authentication?

Thanks,

Squirrelly1