Unfortunately -- I think the LogonUser API needs special permissions (local Admin) to run properly... I ran into problems with that -- I found this module instead...
Use the IsValidNTAccount function (returns boolean)
Thx - pd
{edit} It occurs to me that I may have gotten this code from this board (in all likelyhood) -- so my thanks to whomever was the original author!