View Single Post
  #14 (permalink)  
Old May 4th, 2005, 06:53 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

Hi svmenon,

If you read the thread you'll see that this is just a bit of code I found on another site, I've never used it myself.

If you look at Microsoft's documentation for the LogonUser API function you'll see that it requires the SE_TCB_NAME privilege on Win2000, so maybe your process doesn't have the necessary rights?

What do you get from err.LastDllError just after the LogonUser call?
Reply With Quote