- how to delay displaying of "logon box" / prevent users from loginafter bootup?
- Posted by Tomasz Chmielewski on November 11th, 2006
I'm writing a small service that does its job when the PC boots, and
finishes short after. The job usually takes a couple of seconds,
sometimes a couple of minutes when there is much to do.
In that time, when the service is doing its job, I would like to prevent
users from login.
The best way to do it would be to display a window "Service XYZ is
working, please wait...", and to delay displaying of a "logon box".
Is there an easy way to do it?
--
Tomasz Chmielewski
http://wpkg.org
- Posted by Dave Patrick on November 11th, 2006
These articles may help but be careful.
How to Delay Loading of Specific Services
http://support.microsoft.com/default.aspx?scid=kb;[LN];193888
HOWTO: Control Device Driver Load Order
http://support.microsoft.com/default.aspx?scid=kb;[LN];115486
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
"Tomasz Chmielewski" wrote:
| I'm writing a small service that does its job when the PC boots, and
| finishes short after. The job usually takes a couple of seconds,
| sometimes a couple of minutes when there is much to do.
|
| In that time, when the service is doing its job, I would like to prevent
| users from login.
| The best way to do it would be to display a window "Service XYZ is
| working, please wait...", and to delay displaying of a "logon box".
|
| Is there an easy way to do it?
|
|
| --
| Tomasz Chmielewski
| http://wpkg.org
- Posted by Tomasz Chmielewski on November 11th, 2006
Dave Patrick wrote:
Do you by chance know which service displays "ctrl + alt + del" logon box?
--
Tomasz Chmielewski
http://wpkg.org
- Posted by Dave Patrick on November 11th, 2006
Maybe this helps.
http://www.microsoft.com/technet/pro.../win2ksvc.mspx
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
"Tomasz Chmielewski" wrote:
| Do you by chance know which service displays "ctrl + alt + del" logon box?
|
|
| --
| Tomasz Chmielewski
| http://wpkg.org
- Posted by Calvin on November 12th, 2006
Tomasz Chmielewski wrote:
The 'Ctrl + Alt + Del' message is generated by Winlogon. When you press
Ctl+Alt+Del Winlogon then calls MSGINA - Microsoft Graphical Interface
Network Authorisation (or another GINA if it has been replaced eg: by
Netware) to actually accept your logon credentials.
Calvin.
- Posted by Tomasz Chmielewski on November 12th, 2006
Calvin wrote:
Does this mean, it can't be disabled?
Winlogon is not described on a list Dave Patrick gave:
http://www.microsoft.com/technet/pro.../win2ksvc.mspx
--
Tomasz Chmielewski
http://wpkg.org
- Posted by John John on November 12th, 2006
Tomasz Chmielewski wrote:
It cannot be disabled.
John
- Posted by Tomasz Chmielewski on November 12th, 2006
John John wrote:
All right - I don't want to disable it, I merely want to "delay" it.
WinLogon has to be (has it?) started by some service - but which one?
--
Tomasz Chmielewski
http://wpkg.org
- Posted by Calvin on November 13th, 2006
Tomasz Chmielewski wrote:
The way I understand it works: WinLogon is called by the OS kernel
during the initial boot. SMSS, CSRSS, LSASS and Services.exe are also in
this category. Officially the OS cannot actually complete a boot without
these elements being fully functional. So, as I understand it, short of
patching the kernel there would be no way to stop Winlogon from being
started.
I noticed an article from Mark Russinovich a while ago though, where he
showed that in reality the OS would continue to function with some of
these elements missing - apparently the 'boffins' at Microsoft were in
stunned disbelief !
Since, from what you said, I gather your aim is merely to stop a logon
until the system is ready, might I suggest your best hope to achieve
what you want to do would be to create a new GINA that replaced
MSGINA.dll. Unlike the normal MSGINA, it could observe what your other
code is doing, display a 'please wait' of some description if required,
and not actually accept login credentials until it was satisfied it was
safe to do so.
There is a simple mechanism to replace the GINA (Netware do it all the
time) involving a patch to registry. (If I recall correctly) so that
Winlogon would call your GINA when the user hits, Ctrl-Alt-Del and it
could then take control of when a logon actually occurs.
Please don't ask me how to do this ! There is a VAST difference between
knowing the rough flow of how NT starts up (my level of expertise) and
being able to write replacement modules for elements of it (definitely
NOT within my realm !)
Calvin.