How to execute code with current user privilege on the service application.
Posted on 2009-07-08
I made a serivce application. ( it is executed with System user account )
When i trying to some jobs on the service application, the code does not work.
Because of service application has limitted privileges.
So, i must made other win32 program which is executed by service application with current logon user system privileges.
I think this way is not efficient. Because i must made another program.
So, I looking for the solution that execute some procedure or function with current logon user privileges at the service application.
// Service application body
do_excute_some_code( parameter 1 ); // this procedure will execute with current logon user privileges
Is this possible ???
If you know how to do this, please let me know or give me some example code.