🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #867

Is it possible to get the shortcut link file used to launch an application?

#867
From: const * const char ME
Date: Wed, 02 Jan 2008 21:38
13 lines
1622 bytes
From within a target applications code, is it possible to get the shortcut 
link file used to launch the application?  Assuming of course we do not pass 
any added parameters from each link to differentiate them...  This seems 
like the obvious solution - but I want to avoid that if possible.

I need to determine the shortcut link file used to launch my application. 
EG: c:abc\target.exe  and two shortcut links, once on the desktop and one in 
the start menu, I need to be able to inside target.exe figure out which link 
was used or if it was launched directly from inside Windows explorer... 
Again - without passing parameters from each link to differentiate them....


TIA.
Technical Details
Message-ID: <477c0485$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7240bb9da20048b,start
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "const * const char ME" <smakjasdhfg@iuyd.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Is it possible to get the shortcut link file used to launch an application?
Date: Wed, 2 Jan 2008 13:38:39 -0800
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: 209.17.173.11
Message-ID: <477c0485$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1199309957 209.17.173.11 (2 Jan 2008 13:39:17 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail