The MASM Forum

Projects => MASM32 => Topic started by: Bill Cravener on November 20, 2012, 09:42:49 PM

Title: Playing with Windows ShellExecute API.
Post by: Bill Cravener on November 20, 2012, 09:42:49 PM
I was playing with "ShellExecute" to pop open some Window's system dialogs using control panel property page and wizard launch statements. I was just wanting to pop open Windows "Run" dialog and discovered more launch statements that could open other system dialogs. I'm sure there are other launch statements I haven't discovered.

Once "run.exe" is running left click its tray icon to execute the launch statement. To exit the program right click on its tray icon. It could perhaps even be a useful app if for example you have the "Run" dialog pop open down by run.exe's tray icon. Anyway, thought others might wish to play with it too. :biggrin:

http://www.quickersoft.com/examples/Run.zip
Title: Re: Playing with Windows ShellExecute API.
Post by: dedndave on November 20, 2012, 10:06:44 PM
very cool, Bill   :t

i was wondering how to open control panel snap-ins - lol

one thing i find strange....
the first Run box i open has the instructional text in it
after that, no text   :redface:
Title: Re: Playing with Windows ShellExecute API.
Post by: Bill Cravener on November 20, 2012, 10:20:17 PM
Dave,

Yes, it only seems to show on the first launch. I have no idea why but someone here might figure it out. :biggrin:
Title: Re: Playing with Windows ShellExecute API.
Post by: dedndave on November 20, 2012, 10:32:20 PM
strange - lol
maybe it needs an index number or command line parm ???
Title: Re: Playing with Windows ShellExecute API.
Post by: hutch-- on November 20, 2012, 11:26:02 PM
Dave,

Have a look at the masm32 example, RUNCPL, its in the EXAMPL07 directory.
Title: Re: Playing with Windows ShellExecute API.
Post by: Bill Cravener on November 21, 2012, 12:19:40 AM
Here is a link to many other launch statements that can be used in this example.

http://www.technipages.com/windows-7-vista-rundll32-shortcut-commands.html
Title: Re: Playing with Windows ShellExecute API.
Post by: goofprog on September 15, 2013, 07:51:17 PM
That is cool.  You should try sysinternals tools too.  ShellExecute and remotely popping up a web page on a roommate's computer is funny stuff because they think they are infected with a virus.