Article View: borland.public.cppbuilder.nativeapi
Article #2371Re: ShellExecute
From: Remy Lebeau (TeamB)
Date: Wed, 07 Mar 2007 21:50
Date: Wed, 07 Mar 2007 21:50
35 lines
2007 bytes
2007 bytes
"danzer" <.> wrote in message news:45ef2fdb@newsgroups.borland.com...
> Does windows (specifically Windows XP) use a registry key
> value to execute the following command from a program?
Yes. It has to look up the program that is registered to handle the
HTTP protocol.
> If yes, what is the name of this key?
It is not a single key, but several keys working together. The Shell
recognizes that the specified filename begins with a URL protocol, so
it first opens the following key:
HKEY_CLASSES_ROOT\<protocol> (in this case, <protocol> is "http")
It checks if the key has a "URL Protocol" value present. If present,
it then checks if the following key exists:
HKEY_CLASSES_ROOT\<protocol>\shell\<verb> (in this case, <verb> is
"open")
If it does, then the Shell executes the program specified in the
"command" subkey, or connects to the server specified in the "ddeexec'
subkey.
Refer to the following article for more details:
Registering an Application to a URL Protocol
http://msdn.microsoft.com/workshop/networking/pluggable/overview/appendix_a.asp
Gambit
Technical Details
Message-ID:
<45ef33ca$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.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-mailReferences:
<45ef2fdb@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ce8caababbf02d72 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <45ef2fdb@newsgroups.borland.com> Subject: Re: ShellExecute Date: Wed, 7 Mar 2007 13:50:56 -0800 Lines: 37 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 75.83.34.171 Message-ID: <45ef33ca$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1173304266 75.83.34.171 (7 Mar 2007 13:51:06 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.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