🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ShellExecute

#2369
From: danzer
Date: Wed, 07 Mar 2007 21:55
46 lines
2592 bytes
Remy Lebeau (TeamB) wrote:
> "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
> 
> 

I use SeaMonkey as my default browser and when I upgraded from version 
1.1 to 1.1.1 the ShellExecute command show above returned 
SE_ERR_NOASSOC.  Evidently the upgrade trashed the associations in the 
registry.  I guess I will rebuild them from another machine that has 
SeaMonkey installed as the default browser unless you can suggest an 
easier way.

Danzer
Technical Details
Message-ID: <45ef3568$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.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
References: <45ef2fdb@newsgroups.borland.com> <45ef33ca$1@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
Date: Wed, 07 Mar 2007 15:55:15 -0600
From: danzer <.>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070222 SeaMonkey/1.1.1
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: ShellExecute
References: <45ef2fdb@newsgroups.borland.com> <45ef33ca$1@newsgroups.borland.com>
In-Reply-To: <45ef33ca$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.96.229.17
Message-ID: <45ef3568$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1173304680 24.96.229.17 (7 Mar 2007 13:58:00 -0800)
Lines: 46
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.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