c++ - Call API in particular windows credentials -
i want call api in particular windows credentials,
one way is, write particular piece of code or api in exe , execute exe in particular windows credentials. please let me know if aware of other solution.
thanks in advance.
you use logonuser()
, impersonateloggenonuser()
, call code, call reverttoself()
original credentials. can either in thread, or create separate thread , there. latter preferred have thread exited after , not skip reverttoself()
call.
Comments
Post a Comment