how to execute a program at boot time before login

Hi,

Can I execute any program at the boot time (after all the
network drivers load) before user logins ??
(meaning, it should not be under any user context…) in Windows NT 4.0
/2000 …
The program basically reads some operational parameters from the config file
and issues IOCTLs to driver.
If so where can I put it ?? and how do I achieve this ??

Thanx and regards
Gopikrishna

Native NT programs can be run (synchronously I believe) by modifying the
BootExecute entry in the registry. The normal entry for this is the program
that checks the drives at startup called AUTOCHK.EXE. Basically, a native
NT program can not use normal API calls but must link only with NTDLL. I
think that there have been some articles in OSR’s Insider (IIRC) called
“going native” about the limitations and requirements of writing a native NT
program. I don’t think that the network drivers will be initialized at the
point that the BootExecute programs are run though. What you might have to
do is have a driver that is inserted at the correct point in the load order
to ensure that your driver gets executed at the right time (or waits on an
object) – but this gets tricky/messy since NT starts many drivers
asynchronously once the kernel has been initialized.

Regards,

Paul Bunn, UltraBac.com, 425-644-6000
Microsoft MVP - WindowsNT/2000
http://www.ultrabac.com

-----Original Message-----
From: Gopikrishna Prabhakar Yadappanavar
[mailto:xxxxx@wipro.com]
Sent: Sunday, October 08, 2000 10:49 PM
To: NT Developers Interest List
Subject: [ntdev] how to execute a program at boot time before login

Hi,

Can I execute any program at the boot time (after all the
network drivers load) before user logins ??
(meaning, it should not be under any user context…) in Windows NT 4.0
/2000 …
The program basically reads some operational parameters from the config file
and issues IOCTLs to driver.
If so where can I put it ?? and how do I achieve this ??

cant it be a service?

chaitanya

----- Original Message -----
From: Paul Bunn
To: NT Developers Interest List
Sent: Monday, October 09, 2000 11:45 AM
Subject: [ntdev] RE: how to execute a program at boot time before login

> Native NT programs can be run (synchronously I believe) by modifying the
> BootExecute entry in the registry. The normal entry for this is the
program
> that checks the drives at startup called AUTOCHK.EXE. Basically, a native
> NT program can not use normal API calls but must link only with NTDLL. I
> think that there have been some articles in OSR’s Insider (IIRC) called
> “going native” about the limitations and requirements of writing a native
NT
> program. I don’t think that the network drivers will be initialized at
the
> point that the BootExecute programs are run though. What you might have
to
> do is have a driver that is inserted at the correct point in the load
order
> to ensure that your driver gets executed at the right time (or waits on an
> object) – but this gets tricky/messy since NT starts many drivers
> asynchronously once the kernel has been initialized.
>
> Regards,
>
> Paul Bunn, UltraBac.com, 425-644-6000
> Microsoft MVP - WindowsNT/2000
> http://www.ultrabac.com
>
>
> -----Original Message-----
> From: Gopikrishna Prabhakar Yadappanavar
> [mailto:xxxxx@wipro.com]
> Sent: Sunday, October 08, 2000 10:49 PM
> To: NT Developers Interest List
> Subject: [ntdev] how to execute a program at boot time before login
>
>
> Hi,
>
> Can I execute any program at the boot time (after all the
> network drivers load) before user logins ??
> (meaning, it should not be under any user context…) in Windows NT 4.0
> /2000 …
> The program basically reads some operational parameters from the config
file
> and issues IOCTLs to driver.
> If so where can I put it ?? and how do I achieve this ??
>
> —
> You are currently subscribed to ntdev as: xxxxx@cmcltd.com
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)

> The program basically reads some operational parameters from the config
file

and issues IOCTLs to driver.
If so where can I put it ?? and how do I achieve this ??

The service with Automatic start type will do what you want.

Max

Sounds like a service to me!

Simon.

“Gopikrishna Prabhakar
Yadappanavar” To: “NT Developers Interest List”
<gopikrishna.yadappanavar cc:> wipro.com> Subject: [ntdev] how to execute a program at boot time before
Sent by: login
xxxxx@lists.osr
.com

09/10/00 06:48
Please respond to “NT
Developers Interest List”

Hi,

Can I execute any program at the boot time (after all the
network drivers load) before user logins ??
(meaning, it should not be under any user context…) in Windows NT 4.0
/2000 …
The program basically reads some operational parameters from the config
file
and issues IOCTLs to driver.
If so where can I put it ?? and how do I achieve this ??

Thanx and regards
Gopikrishna


You are currently subscribed to ntdev as: xxxxx@normanuk.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)</gopikrishna.yadappanavar>