views:

912

answers:

3

i have designed an application which validates users against online database and then allow users to work, after authentication it shows desktop, it loads on startup.

i would like to start my login application at windows start up, i have added my login application path to registry it is started well with windows. but it has one issue first windows desktop appears few seconds and then my login application loaded

i would like to show my application before windows desktop

or

any other way to use windows login to validate user against online server database and then allow users to work.

A: 

A similar question has been asked and answered here.

Spear
+1  A: 

If you don't want the desktop to show at all you can run your application as the Windows Shell.

You use this registry key

[HKEY_LOCAL_MACHINE\SOFTWARE\Micro­soft\Windows NT\CurrentVersion\Winlogon]
"Shell"="C:\\WINDOWS\\explorer.exe­"

The other solution is to use XP Embedded Standard so you can totally customise the Windows experience. Takes a lot more work than the simple shell replacement though, but much more robust

gommo
but i need taskbar and startmenu, if i replaced the above key. what happens
JKS
i have replaced shell. but my application not focused, i am testing in Virtual Machine, if i clicked shutdown menu then my application focused. how do i solve this
JKS
i have used following code Process p = new Process(); p.Start("explorer.exe"); Application.ExitThread();explorer initialization failed message appears
JKS
A: 

You could replace the shell as above, then have your application launch explorer.exe when you were ready to have the start menu and taskbar show up...

sunmorgus
JKS
change your p.Start to p.Start(@"c:\Windows\explorer.exe")
sunmorgus
i have replaced windows shell but my application UI is hidden, when i click virtual machine shutdown command, my application is focused.
JKS
i couldn't access internet from my application is there any other way
JKS
Not sure why you wouldn't be able to access the internet...replacing the shell shouldn't have broken that
sunmorgus
i have replaced windows shell but my application UI is hidden, when i click virtual machine shutdown command, my application is focused. is there any solution for that.pls help me
JKS
i have changed my p.Start to p.Start(@"c:\Windows\explorer.exe");Application.ExitThread() //to close my app and then start explorer i get the following error "application initialization failed"
JKS