Start explorer with taskbar

This is a discussion on Start explorer with taskbar within the Windows Programming forums, part of the Platform Specific Boards category; G'day, I've replaced the default login shell (explorer.exe) with my own program, which then starts explorer.exe when required (and kills ...

  1. #1
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459

    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

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,600
    It works fine for me. How are you spawning it?

    Maybe:

    explorer /root,%USERPROFILE%\Desktop

  3. #3
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    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.

  4. #4
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,255
    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.

  5. #5
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    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

Popular pages Recent additions subscribe to a feed

Similar Threads

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

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