Relative Content

Tag Archive for windowsregistryshellexecuteex

How to use ShellExecuteEx in windows registry?

I want to add a context menu entry which will start a program elevated with admin privileges using the runas verb of ShellExecuteEx. I know how to add the context menu entry and registry command, thus making the entry start the program but I don’t know how to use ShellExecuteEx to start the program with the runas verb.