Hi,
I tried to run this code, but I got an error:
"A required privilege is not held by the client."
Looking around, I have found that this is due to my application not having the SE_TCB_NAME privilege, which is required for LogonUser to work. Did you run your code as a service so...