Page 1 of 1
RunProgram() - #PB_Program_Admin/Elevate
Posted: Sun Mar 13, 2011 11:44 am
by nco2k
it would be cool if you could add a #PB_Program_Admin/Elevate flag, so we can properly request admin rights for an external app.
http://blogs.msdn.com/b/vistacompatteam ... 71232.aspx
c ya,
nco2k
Re: RunProgram() - #PB_Program_Admin/Elevate
Posted: Mon Apr 04, 2011 11:06 am
by Sveinung
Like this ?
Code: Select all
shExecInfo.SHELLEXECUTEINFO
shExecInfo\cbSize = SizeOf(shExecInfo)
shExecInfo\fMask = #Null
shExecInfo\hwnd = #Null
shExecInfo\lpVerb = @"runas"
shExecInfo\lpFile = @"notepad.exe"
shExecInfo\lpParameters = #Null
shExecInfo\lpDirectory = #Null
shExecInfo\nShow = #SW_MAXIMIZE
shExecInfo\hInstApp = #Null
ShellExecuteEx_(shExecInfo)
Sveinung
Re: RunProgram() - #PB_Program_Admin/Elevate
Posted: Thu Mar 25, 2021 2:27 pm
by BarryG
+1