Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ShellExecute to pass parameters

Status
Not open for further replies.

FrustratedGuy

Programmer
Jun 26, 2019
2
US
I use this to pass parameters to another exe file
[pre]ShellExecute(Application.Handle,'open',pwidechar(mFilename),pwidechar(mParams),nil,SW_SHOWNORMAL);[/pre]

That causes windows to open up a security message 'Do you want to allow this app to make changes to your device?' Which is fine, the problem is the security message is hidden and you have to click on it in the taskbar first.

Anyway to have that windows security message to pop up focused same way it does when you double-click on the file manually?
 
I have this working you can close.

I switched to using ShellExecuteEx instead of ShellExecute, problem solved.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top