Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Launching a shell

Status
Not open for further replies.

Sulik

Programmer
Dec 3, 2001
9
RU
Well, perhaps this would be a little off-topic, but as soon as I realized u guys being so much helpgul, I've decided to try to ask this ;)
I can assume that there's a key (or a link, dunno how to name it ) somewhere in the registry which refers the current shell (Windows NT, for example). What if I change this reference to my application, making it the shell, and will launch a standart shell after completing my application's work?
And.. if it is theoretically possible.. I'd like to know HOW to do this ;)
I mean how can I change this reference (where is it located), and how can I launch the shell from my application.
Just a lot of questions, eh? ;)
 
why in the world would you want to do that?
For starters, look in the .ini file for windows, i cant think of the name off of the top of my head, and try to find the reference to the shell.
or/then goto Start->Run->regedit
in regedit, search for the reference. If you know it, press Ctrl+F and type it in to look for it.
Hope that helped on whatever quest your on to annhilate your computer. Cyprus
 
HI Sulik.
I only know how obout the shell in win98.
In the system.ini file there is a key named shell the standard value is explorer.exe. This is the program responseble for drawing desktop icons, programbar, startmenu and other stuff( mapping the windows key for shortcuts ect). If you create you own application and tell windows to load it as the shell, it is the ONLY program window loads (windows still have loaded network drivers and other stuff that does not show up in the taskmanager). The problem is that you can't swap shell without a reboot (as far as I know), witch means you won't have you normal windows back when you program ends, and starting the explorer.exe file wont give you the shell version of the program, but just the file explorer.
I'm pretty sure this cant be done in NT, and as Cyprus said cant understand why you would like to do so.
Hope i could be of asistance anyway.
Klaus
 
Hmm.. thanks for your help, guys..
Darn it, I didn't know that I would have to reboot.. that's no good.. in that case I will be unable to do what I want to do..
Thanks anyway :)
I hope this knowledge will be useful sometime after now ;)
 
I want to ask a simple question, I bought C++ builder 5, and I have picked up C++, but im working on a html editor at the moment and I want to be able to let users to view there html files in my program. Is there a bit of code for to view a html file in a program or is there a bit of code to launch an exe file from my application:
PS: sites great,
 
Hi Michael.
The Builder has a TCppWebBrowser component (last in the Internet tab). I think it uses the COM opject from the Internet explorer.
Here is a little code snip.

WideString Url = Edit1->Text; //convert into a widestring
Form1->CppWebBrowser1->Navigate(BSTR(Url)); /*go there*/'

Hope it's helpfull Klaus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top