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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -