Hello guys,
I need to change some registry values which requires Admin rights on Vista.
Do you know some API I can call to request such elevation when I need it instead of asking the user to run my program "As Admin" ?
Thank you,
Davide
Hello guys,
I need to change some registry values which requires Admin rights on Vista.
Do you know some API I can call to request such elevation when I need it instead of asking the user to run my program "As Admin" ?
Thank you,
Davide
I've solved it creating a .reg file and shellexecuting it.
Thank you anyway.
Davide
Davide,
Would you mind to show the reg file contents ? Or a sample ? Thanks! ![]()
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName]
"ComputerName"="WKS005"ShellExecute(0,"open","regedit","/s myfile.reg","",1)Davide,
Thanks! ![]()