PC Review


Reply
Thread Tools Rate Thread

Control login or automatic service startup

 
 
=?Utf-8?B?Tm9ybWE=?=
Guest
Posts: n/a
 
      21st May 2005
Our new, soon to be released, XPE OS is booting 1 minute faster than our
current W2k Server OS. This is causing some timeout issues with our 3rd
party DSP if the user logs in while the DSPs are loading.

The best fix would be with the DSPs, but ithat would take too long (3rd
party), so I am currently searching for a "quick" fix.

Is it possible to either:
1. Control when the login screen appears (delay it for 1 minute)
2. The DSP code is an automatic service -- can I change the order of
automatic services such that the DSP service would be one of the first to
start?








--
Norma
 
Reply With Quote
 
 
 
 
KM
Guest
Posts: n/a
 
      21st May 2005
Norma,

> Our new, soon to be released, XPE OS is booting 1 minute faster than our
> current W2k Server OS. This is causing some timeout issues with our 3rd
> party DSP if the user logs in while the DSPs are loading.


You should investigae what exactly is the root for the conflicts with the
3rd party software. Is is the actual user logon? (would be strange then)
Or it is some service load order? Or some Startup items for a user account?

Then you would know where to put the patch (fix, workaround, etc.).

> The best fix would be with the DSPs, but ithat would take too long (3rd
> party), so I am currently searching for a "quick" fix.
>
> Is it possible to either:
> 1. Control when the login screen appears (delay it for 1 minute)


Theoretically, you can make you own app with controllable Sleep API call in
it. The app should launch an exe like ActualWinlogon.exe.
Rename the app binary toWinlogon.exe, rename the real Winlogon.exe to
something ActualWinlogon.exe.

> 2. The DSP code is an automatic service -- can I change the order of
> automatic services such that the DSP service would be one of the first to
> start?


Setup service dependencies.
On XPe, it is LoadOrderGroup and Dependencies properties of Service Data
resource (the resouce of the DSP component you've got).

KM


 
Reply With Quote
 
=?Utf-8?B?Tm9ybWE=?=
Guest
Posts: n/a
 
      24th May 2005
Thanks KM -- I appreciate the time you spend answering mine ( and many others
) questions.

Also, I do know that I need to find the root cause (and I will!), but I am
looking for a "quick, robust fix" because of time to market issues.

I tried your first suggestion; writing my own winlogon, renaming the real
winlogon.exe to ActualWinLogon.exe, and then launching that from my exe.
However, it blue screens with "The windows logon process terminated
unexpectedly ... "

I have searched MSDN and other sites for tips/tricks etc on doing this, but
to no avail.

Do you know if this really can be done, or where I could find more
information?
--
Norma


"KM" wrote:

> Norma,
>
> > Our new, soon to be released, XPE OS is booting 1 minute faster than our
> > current W2k Server OS. This is causing some timeout issues with our 3rd
> > party DSP if the user logs in while the DSPs are loading.

>
> You should investigae what exactly is the root for the conflicts with the
> 3rd party software. Is is the actual user logon? (would be strange then)
> Or it is some service load order? Or some Startup items for a user account?
>
> Then you would know where to put the patch (fix, workaround, etc.).
>
> > The best fix would be with the DSPs, but ithat would take too long (3rd
> > party), so I am currently searching for a "quick" fix.
> >
> > Is it possible to either:
> > 1. Control when the login screen appears (delay it for 1 minute)

>
> Theoretically, you can make you own app with controllable Sleep API call in
> it. The app should launch an exe like ActualWinlogon.exe.
> Rename the app binary toWinlogon.exe, rename the real Winlogon.exe to
> something ActualWinlogon.exe.
>
> > 2. The DSP code is an automatic service -- can I change the order of
> > automatic services such that the DSP service would be one of the first to
> > start?

>
> Setup service dependencies.
> On XPe, it is LoadOrderGroup and Dependencies properties of Service Data
> resource (the resouce of the DSP component you've got).
>
> KM
>
>
>

 
Reply With Quote
 
KM
Guest
Posts: n/a
 
      25th May 2005
Norma,

> Also, I do know that I need to find the root cause (and I will!), but I am
> looking for a "quick, robust fix" because of time to market issues.


I understand. But in my experience, when you do a fix for an issue and don't
know the root of the issue, the fix is unlikely going to be robust.

> I tried your first suggestion; writing my own winlogon, renaming the real
> winlogon.exe to ActualWinLogon.exe, and then launching that from my exe.
> However, it blue screens with "The windows logon process terminated
> unexpectedly ... "


Please disregard that suggestion. After some thinking I don't believe it is
going to work that easy as the Winlogon is a crucial part of Windows boot
process and can't be easy eliminated (you replacement app will have to
properly communicate with Csrss).

You probably want to try another way and replace Userinit value
([HKLM\Software\Microsoft\Windows NT\Winlogon]) with your own app launch.
Basically you app should check/wait until the DSP service is up and running
(QueryServiceStatus API) and then start real userunit.exe from
\windows\system32\.
This way you make sure user profile is not loaded until DSP service is
running.
You app can even be a batch script (or any other supported script) that
calls to sc.exe to query the status of DSP service and executes
\windows\system32\userinit.exe at the end (please be aware that enviromental
variables like SystemRoot are not yet available at this point).

KM

> I have searched MSDN and other sites for tips/tricks etc on doing this,
> but
> to no avail.
>
> Do you know if this really can be done, or where I could find more
> information?
> --
> Norma
>
>
> "KM" wrote:
>
>> Norma,
>>
>> > Our new, soon to be released, XPE OS is booting 1 minute faster than
>> > our
>> > current W2k Server OS. This is causing some timeout issues with our
>> > 3rd
>> > party DSP if the user logs in while the DSPs are loading.

>>
>> You should investigae what exactly is the root for the conflicts with the
>> 3rd party software. Is is the actual user logon? (would be strange then)
>> Or it is some service load order? Or some Startup items for a user
>> account?
>>
>> Then you would know where to put the patch (fix, workaround, etc.).
>>
>> > The best fix would be with the DSPs, but ithat would take too long (3rd
>> > party), so I am currently searching for a "quick" fix.
>> >
>> > Is it possible to either:
>> > 1. Control when the login screen appears (delay it for 1 minute)

>>
>> Theoretically, you can make you own app with controllable Sleep API call
>> in
>> it. The app should launch an exe like ActualWinlogon.exe.
>> Rename the app binary toWinlogon.exe, rename the real Winlogon.exe to
>> something ActualWinlogon.exe.
>>
>> > 2. The DSP code is an automatic service -- can I change the order of
>> > automatic services such that the DSP service would be one of the first
>> > to
>> > start?

>>
>> Setup service dependencies.
>> On XPe, it is LoadOrderGroup and Dependencies properties of Service Data
>> resource (the resouce of the DSP component you've got).
>>
>> KM
>>
>>
>>



 
Reply With Quote
 
KM
Guest
Posts: n/a
 
      27th May 2005
Norma,

I had forgotten to mention one more option for you. Customizing Winlogon
(GINA):
http://msdn.microsoft.com/library/en...g_winlogon.asp.

This is another way for you to make sure a particular service is started and
running. If not, you can delay the actual user logon (in WlxLoggedOnSAS
implementation) until the condition is met.

KM

>> Also, I do know that I need to find the root cause (and I will!), but I
>> am
>> looking for a "quick, robust fix" because of time to market issues.

>
> I understand. But in my experience, when you do a fix for an issue and
> don't know the root of the issue, the fix is unlikely going to be robust.
>
>> I tried your first suggestion; writing my own winlogon, renaming the real
>> winlogon.exe to ActualWinLogon.exe, and then launching that from my exe.
>> However, it blue screens with "The windows logon process terminated
>> unexpectedly ... "

>
> Please disregard that suggestion. After some thinking I don't believe it
> is going to work that easy as the Winlogon is a crucial part of Windows
> boot process and can't be easy eliminated (you replacement app will have
> to properly communicate with Csrss).
>
> You probably want to try another way and replace Userinit value
> ([HKLM\Software\Microsoft\Windows NT\Winlogon]) with your own app launch.
> Basically you app should check/wait until the DSP service is up and
> running (QueryServiceStatus API) and then start real userunit.exe from
> \windows\system32\.
> This way you make sure user profile is not loaded until DSP service is
> running.
> You app can even be a batch script (or any other supported script) that
> calls to sc.exe to query the status of DSP service and executes
> \windows\system32\userinit.exe at the end (please be aware that
> enviromental variables like SystemRoot are not yet available at this
> point).
>
> KM
>
>> I have searched MSDN and other sites for tips/tricks etc on doing this,
>> but
>> to no avail.
>>
>> Do you know if this really can be done, or where I could find more
>> information?
>> --
>> Norma
>>
>>
>> "KM" wrote:
>>
>>> Norma,
>>>
>>> > Our new, soon to be released, XPE OS is booting 1 minute faster than
>>> > our
>>> > current W2k Server OS. This is causing some timeout issues with our
>>> > 3rd
>>> > party DSP if the user logs in while the DSPs are loading.
>>>
>>> You should investigae what exactly is the root for the conflicts with
>>> the
>>> 3rd party software. Is is the actual user logon? (would be strange then)
>>> Or it is some service load order? Or some Startup items for a user
>>> account?
>>>
>>> Then you would know where to put the patch (fix, workaround, etc.).
>>>
>>> > The best fix would be with the DSPs, but ithat would take too long
>>> > (3rd
>>> > party), so I am currently searching for a "quick" fix.
>>> >
>>> > Is it possible to either:
>>> > 1. Control when the login screen appears (delay it for 1 minute)
>>>
>>> Theoretically, you can make you own app with controllable Sleep API call
>>> in
>>> it. The app should launch an exe like ActualWinlogon.exe.
>>> Rename the app binary toWinlogon.exe, rename the real Winlogon.exe to
>>> something ActualWinlogon.exe.
>>>
>>> > 2. The DSP code is an automatic service -- can I change the order of
>>> > automatic services such that the DSP service would be one of the first
>>> > to
>>> > start?
>>>
>>> Setup service dependencies.
>>> On XPe, it is LoadOrderGroup and Dependencies properties of Service Data
>>> resource (the resouce of the DSP component you've got).
>>>
>>> KM
>>>
>>>
>>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Service using VB.Net automatic startup problem ! =?Utf-8?B?UmF2aSBTaGFua2Fy?= Microsoft VB .NET 6 30th May 2006 04:53 PM
Installing service with automatic startup from command prompt =?Utf-8?B?YWFh?= Windows XP Security 2 23rd Nov 2005 05:41 PM
Security tab on files or folders and automatic login at Windows startup Ishtiaque Ahmed Memon Windows XP General 4 19th Nov 2005 08:43 PM
Automatic startup of service Jeremy Chapman Microsoft Dot NET Framework 3 10th Jan 2005 07:00 PM
automatic login during startup Gary Windows XP General 2 29th Jan 2004 08:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:53 AM.