C Board  

Go Back   C Board > Platform Specific Boards > Windows Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 10-21-2009, 10:34 PM   #1
Woof, woof!
 
zacs7's Avatar
 
Join Date: Mar 2007
Location: Australia
Posts: 3,139
Start explorer with taskbar

G'day,

I've replaced the default login shell (explorer.exe) with my own program, which then starts explorer.exe when required (and kills it when required). The only problem is, when I create explorer.exe there is no desktop or task bar? Regardless if I start it through the task manager or with CreateProcess(). Instead only an explorer window appears -- this is a clean default install of Windows XP SP3.

Is there something I'm missing?

Thanks!
Zac
__________________
"I.T. gets the chicky-babes" - M. Kelly
bakefile | vim
zacs7 is offline   Reply With Quote
Old 10-21-2009, 11:28 PM   #2
Guest
 
Sebastiani's Avatar
 
Join Date: Aug 2001
Posts: 4,923
It works fine for me. How are you spawning it?

Maybe:

explorer /root,%USERPROFILE%\Desktop
Sebastiani is offline   Reply With Quote
Old 10-22-2009, 03:16 AM   #3
Woof, woof!
 
zacs7's Avatar
 
Join Date: Mar 2007
Location: Australia
Posts: 3,139
No luck. I'm spawning it with,

Code:
STARTUPINFO si;
PROCESS_INFORMATION pi;

CreateProcess(NULL, "explorer.exe", NULL, NULL, false, NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &pi );
Either way, even if I use the task manager to spawn it, it still doesn't work.

It spawns an explorer window, just the desktop and taskbar don't appear. Thanks for the suggestion, but it didn't work.

I've tried this on several XP SP3 machines.
__________________
"I.T. gets the chicky-babes" - M. Kelly
bakefile | vim
zacs7 is offline   Reply With Quote
Old 10-22-2009, 08:55 AM   #4
Registered User
 
Join Date: Aug 2001
Location: Newport, South Wales, UK
Posts: 1,094
AFAIK Explorer tests the "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell" registry value to see if it is listed as the shell and won't bother creating the desktop or taskbar if it isn't.

Short of shimming it so it thinks it is when it isn't, there's no way around it.
SMurf is offline   Reply With Quote
Old 10-24-2009, 11:40 PM   #5
Woof, woof!
 
zacs7's Avatar
 
Join Date: Mar 2007
Location: Australia
Posts: 3,139
Quote:
Originally Posted by SMurf View Post
AFAIK Explorer tests the "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell" registry value to see if it is listed as the shell and won't bother creating the desktop or taskbar if it isn't.

Short of shimming it so it thinks it is when it isn't, there's no way around it.
Ah, that's odd. Thank you
__________________
"I.T. gets the chicky-babes" - M. Kelly
bakefile | vim
zacs7 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Structure Eror prominababy C Programming 3 01-06-2009 09:35 AM
Adventures in labyrinth generation. guesst Game Programming 8 10-12-2008 01:30 PM
C++ gui for windows where to start prixone Windows Programming 2 12-16-2006 11:48 PM
GNOME Desktop won't start (Mandriva) psychopath Tech Board 10 07-19-2006 01:21 PM
WHEN to start game programming mrcheesypants Game Programming 18 02-02-2006 04:09 PM


All times are GMT -6. The time now is 02:07 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22