Log On As A Service right

  • Thread starter Thread starter Virgil Trasca
  • Start date Start date
V

Virgil Trasca

how can I give the right "Log On As a Service" to a process? I need it
through the c++ or delphi code and not user interface.

I need this right in order to perform LogonUser function? MSDN tells
that I need "Act as a part of operating system" for this function but I
found that even with this right the function fails some times. But with Log
on as a Service always work but I don't know how to give this right through
source code.
Sample code will be great for me.

Thanks,
Virgil
 
Who does the code run as? ...that's the user that needs the right.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top