Posted By

shadevampire on 06/03/11


Tagged

c windows api admin runas


Versions (?)

Windows C API for running an application as admin


 / Published in: C
 

URL: http://en.wikipedia.org/wiki/User_Account_Control

for return codes see the documentation: http://msdn.microsoft.com/en-us/library/bb762153(v=vs.85).aspx

  1. ShellExecute(hwnd, "runas", "C:\\Windows\\Notepad.exe", 0, 0, SW_SHOWNORMAL);

Report this snippet  

You need to login to post a comment.