View Single Post
  #16 (permalink)  
Old May 4th, 2005, 08:45 AM
pgtips pgtips is offline
Friend of Wrox
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post

quote:Originally posted by sujithvmenon

err.LastDllError value returned is 1314

error 1314 is ERROR_PRIVILEGE_NOT_HELD, which (according to the Microsoft docs on LogonUser - did you read this?) is the exact error you will get if the process trying to call LogonUser does not have the SE_TCB_NAME privilege. So the problem is not with the code but with the user/process account that is trying to run the code.
Reply With Quote