From: Richard Russell on
Is there any way for an application to tell whether or not it was run
from a shortcut?

Richard.
http://www.rtrussell.co.uk/
From: araav on
On Jul 16, 1:11 pm, Richard Russell <n...(a)rtrussell.co.uk> wrote:
> 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()
From: G�nter Prossliner on
Hello Richard!

> 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


From: Richard Russell on
On Jul 16, 9:11 am, Richard Russell <n...(a)rtrussell.co.uk> wrote:
> 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/