Discussion:
Was application run from a shortcut?
(too old to reply)
Richard Russell
2010-07-16 08:11:52 UTC
Permalink
Is there any way for an application to tell whether or not it was run
from a shortcut?

Richard.
http://www.rtrussell.co.uk/
araav
2010-07-18 15:31:29 UTC
Permalink
Post by Richard Russell
Is there any way for an application to tell whether or not it was run
from a shortcut?
Richard.http://www.rtrussell.co.uk/
I'd play with the getcommandline()
Günter Prossliner
2010-07-19 09:40:00 UTC
Permalink
Hello Richard!
Post by Richard Russell
Is there any way for an application to tell whether or not it was run
from a shortcut?
From any shortcut or from a specific one (e.g. in Startmenu or Desktop
created by your installer)?

If it's a specific one you may add a Command-Line Flag to the Target.




GP
Richard Russell
2010-07-19 10:22:33 UTC
Permalink
Post by Richard Russell
Is there any way for an application to tell whether or not it was run
from a shortcut?
I got the answer by private email:

The STARTF_TITLEISLINKNAME flag is set by GetStartupInfo() when the
application was started from a .lnk:

http://msdn.microsoft.com/en-us/library/ms683230.aspx

Richard.
http://www.rtrussell.co.uk/

Continue reading on narkive:
Loading...