The account under which impersonating process is running must have "Act As
Part Of The Operating System" (SE_TCB_NAME) privilege. That privilege you
must set manualy in Local Security Policy mmc snap-in. You can find it under
LocalPolicies/User Righs Assignments
"LongRunner" <ja**@flexsystem.com> wrote in message
news:ez**************@TK2MSFTNGP11.phx.gbl...
Thx for your reply. In fact, i know the process require the SE_TCB_NAME.
However, i don't know how to set it. Also, I perfer use the >NET classes
to perform this action more than the WINAPI. Does .NET provided class to do
it?
<Vladimír Lehock? <le*****@gmx.net>> ¦b¶lĄó
news:uY****************@tk2msftngp13.phx.gbl ¤¤Ľ¶Ľg... The process calling LogonUser requires the SE_TCB_NAME privilege.
Read remark section for LogonUser function in MSDN
Vlado
"LongRunner" <ja**@flexsystem.com> wrote in message
news:et**************@TK2MSFTNGP11.phx.gbl... Hi, I am writing an application that contains a logon function. I want to use the Windows Logon account to logon my application. Does .NET
provide classes for me to do it? In fact, i am using the WINAPI LogonUser to
do this but i found that the function cannot work in Window2000, It return
Error code:1314 "A required privilege is not held by the client."
And i don't know how to fix it.
Can tell me how to do it in .NET? And can teach me how to solve my
error. Thx a lot of.