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
RunProgram() - #PB_Program_Admin/Elevate
RunProgram() - #PB_Program_Admin/Elevate
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
Re: RunProgram() - #PB_Program_Admin/Elevate
Like this ?
Sveinung
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)