Hi,
Is it possible to display string and get keyboard input form boot-start
driver?
How to do this?
Many thanks in advance,
Leonid
Hi,
Is it possible to display string and get keyboard input form boot-start
driver?
How to do this?
Many thanks in advance,
Leonid
How do you know there is a monitor and keyboard? Windows supports headless
operation, and a heck of a lot of servers are now run “lights out” where no
one is there to respond. This question has been discussed many times on
this forum and microsoft.public.win32.programmer.kernel basically there are
ways to display a string, but no good way to read the keyboard. But even if
you could, there is a high likelyhood that there is no one there to respond,
so do sit there waiting.
–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
“Leonid Zhigunov” wrote in message
news:xxxxx@ntdev…
> Hi,
>
> Is it possible to display string and get keyboard input form boot-start
> driver?
> How to do this?
>
> Many thanks in advance,
> Leonid
>
>
>
InbvEnableDisplayString(TRUE) switches the screen to a mode where string
can be displayed, the ZwDisplayString(PUNICODE_STRING) displays a string.
As about keyboard input - you cannot do it from a boot-start driver, unless
you will go direct to the hardware - which will probably cause havoc if the
machine has a USB keyboard.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Leonid Zhigunov”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Monday, November 22, 2004 2:12 PM
Subject: [ntdev] Boot-start driver. How to display string and get keyboard
input?
> Hi,
>
> Is it possible to display string and get keyboard input form boot-start
> driver?
> How to do this?
>
> Many thanks in advance,
> Leonid
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
You don’t necessarily sit there and wait. You can do what chkdsk does
wait 10 seconds, and if there is no response, do what you were going to
do if the user hit a key.
To read the keyboard, as don said, is a bit complicated. At the kernel
level, there is no virtualized keyboard for all input streams. You
would have to open all keyboards by device interface
(IoGetDeviceInterfaces) and not by hardcoded name
(\Device\KeyboardClass0 is most likely the terminal services keyboard
for instance). After you have opened them all, you need to send reads
to them all. After you are done, you must close the open handles before
win32k.sys loads (and the raw input thread) so that the raw input thread
can open the keyboards for the user to use normally.
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: Monday, November 22, 2004 5:31 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Boot-start driver. How to display string and get
keyboard input?
How do you know there is a monitor and keyboard? Windows supports
headless
operation, and a heck of a lot of servers are now run “lights out” where
no
one is there to respond. This question has been discussed many times on
this forum and microsoft.public.win32.programmer.kernel basically there
are
ways to display a string, but no good way to read the keyboard. But
even if
you could, there is a high likelyhood that there is no one there to
respond,
so do sit there waiting.
–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
“Leonid Zhigunov” wrote in message
news:xxxxx@ntdev…
> Hi,
>
> Is it possible to display string and get keyboard input form
boot-start
> driver?
> How to do this?
>
> Many thanks in advance,
> Leonid
>
>
>
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
>(\Device\KeyboardClass0 is most likely the terminal services keyboard
for instance). After you have opened them all, you need to send reads
to them all. After you are done, you must close the open handles before
Yes, and note that this is impossible in Boot driver init paths, only in System
one, provided it is loaded after the keyboard.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
A method we have used in the past to disable a boot driver (disk/file system
filters) is to pass values via the boot.ini command line.
For example, you can add something like /NOLOAD to the boot.ini and the user
can select this menu option when booting. In the drivers DriverEntry() query
the registry for this value and force the driver to do something (fail to
load, etc…)
Not sure if this will help you, but it sure is a good way to unload a driver
that is BSODing on you at boot time.
Jamey
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Monday, November 22, 2004 10:35 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Boot-start driver. How to display string and get
keyboard input?
(\Device\KeyboardClass0 is most likely the terminal services keyboard
for instance). After you have opened them all, you need to send reads
to them all. After you are done, you must close the open handles before
Yes, and note that this is impossible in Boot driver init paths, only in
System
one, provided it is loaded after the keyboard.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@tfb.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Actually, a simpler method of this is to create a second hardware profile.
If the driver is a legacy driver, it can be loaded with a different service
key and different registry parameters depending on what is needed. If you
have a PNP driver, use a small legacy driver to supply the data using the
legacy technique.
–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
“Jamey Kirby” wrote in message news:xxxxx@ntdev…
> A method we have used in the past to disable a boot driver (disk/file
system
> filters) is to pass values via the boot.ini command line.
>
> For example, you can add something like /NOLOAD to the boot.ini and the
user
> can select this menu option when booting. In the drivers DriverEntry()
query
> the registry for this value and force the driver to do something (fail to
> load, etc…)
>
> Not sure if this will help you, but it sure is a good way to unload a
driver
> that is BSODing on you at boot time.
>
> Jamey
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
> Sent: Monday, November 22, 2004 10:35 AM
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] Boot-start driver. How to display string and get
> keyboard input?
>
> >(\Device\KeyboardClass0 is most likely the terminal services keyboard
> >for instance). After you have opened them all, you need to send reads
> >to them all. After you are done, you must close the open handles before
>
> Yes, and note that this is impossible in Boot driver init paths, only in
> System
> one, provided it is loaded after the keyboard.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@tfb.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
How is this simpler? If your DriverEntry() looks for the INI file parameter,
there is no need for a special driver if legacy support is needed. Also, if
you have a file system driver, PNP is not very useful.
Jamey
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: Monday, November 22, 2004 10:52 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Boot-start driver. How to display string and get
keyboard input?
Actually, a simpler method of this is to create a second hardware profile.
If the driver is a legacy driver, it can be loaded with a different service
key and different registry parameters depending on what is needed. If you
have a PNP driver, use a small legacy driver to supply the data using the
legacy technique.
–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
“Jamey Kirby” wrote in message news:xxxxx@ntdev…
> A method we have used in the past to disable a boot driver (disk/file
system
> filters) is to pass values via the boot.ini command line.
>
> For example, you can add something like /NOLOAD to the boot.ini and the
user
> can select this menu option when booting. In the drivers DriverEntry()
query
> the registry for this value and force the driver to do something (fail to
> load, etc…)
>
> Not sure if this will help you, but it sure is a good way to unload a
driver
> that is BSODing on you at boot time.
>
> Jamey
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
> Sent: Monday, November 22, 2004 10:35 AM
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] Boot-start driver. How to display string and get
> keyboard input?
>
> >(\Device\KeyboardClass0 is most likely the terminal services keyboard
> >for instance). After you have opened them all, you need to send reads
> >to them all. After you are done, you must close the open handles before
>
> Yes, and note that this is impossible in Boot driver init paths, only in
> System
> one, provided it is loaded after the keyboard.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@tfb.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@tfb.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Sorry, I said that backwards. In either case, using boot.ini options only
requires minor changes to the driver. Using hardware configurations requires
the user understand how it works. An installer can easily add a line to the
boot.ini file and the user will subsequently be prompted with a menu
selection.
I have used the hardware profile stuff in the past and it is SICK
Jamey
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jamey Kirby
Sent: Monday, November 22, 2004 11:30 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Boot-start driver. How to display string and get
keyboard input?
How is this simpler? If your DriverEntry() looks for the INI file parameter,
there is no need for a special driver if legacy support is needed. Also, if
you have a file system driver, PNP is not very useful.
Jamey
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: Monday, November 22, 2004 10:52 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Boot-start driver. How to display string and get
keyboard input?
Actually, a simpler method of this is to create a second hardware profile.
If the driver is a legacy driver, it can be loaded with a different service
key and different registry parameters depending on what is needed. If you
have a PNP driver, use a small legacy driver to supply the data using the
legacy technique.
–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
“Jamey Kirby” wrote in message news:xxxxx@ntdev…
> A method we have used in the past to disable a boot driver (disk/file
system
> filters) is to pass values via the boot.ini command line.
>
> For example, you can add something like /NOLOAD to the boot.ini and the
user
> can select this menu option when booting. In the drivers DriverEntry()
query
> the registry for this value and force the driver to do something (fail to
> load, etc…)
>
> Not sure if this will help you, but it sure is a good way to unload a
driver
> that is BSODing on you at boot time.
>
> Jamey
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
> Sent: Monday, November 22, 2004 10:35 AM
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] Boot-start driver. How to display string and get
> keyboard input?
>
> >(\Device\KeyboardClass0 is most likely the terminal services keyboard
> >for instance). After you have opened them all, you need to send reads
> >to them all. After you are done, you must close the open handles before
>
> Yes, and note that this is impossible in Boot driver init paths, only in
> System
> one, provided it is loaded after the keyboard.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@tfb.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@tfb.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@tfb.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Jamey,
How do you reliably retried the boot.ini line or the option from the
boot driver?
–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply
“Jamey Kirby” wrote in message news:xxxxx@ntdev…
> Sorry, I said that backwards. In either case, using boot.ini options only
> requires minor changes to the driver. Using hardware configurations
requires
> the user understand how it works. An installer can easily add a line to
the
> boot.ini file and the user will subsequently be prompted with a menu
> selection.
>
> I have used the hardware profile stuff in the past and it is SICK
>
> Jamey
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Jamey Kirby
> Sent: Monday, November 22, 2004 11:30 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Boot-start driver. How to display string and get
> keyboard input?
>
> How is this simpler? If your DriverEntry() looks for the INI file
parameter,
> there is no need for a special driver if legacy support is needed. Also,
if
> you have a file system driver, PNP is not very useful.
>
> Jamey
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
> Sent: Monday, November 22, 2004 10:52 AM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] Boot-start driver. How to display string and get
> keyboard input?
>
> Actually, a simpler method of this is to create a second hardware profile.
> If the driver is a legacy driver, it can be loaded with a different
service
> key and different registry parameters depending on what is needed. If you
> have a PNP driver, use a small legacy driver to supply the data using the
> legacy technique.
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
>
>
>
>
>
> “Jamey Kirby” wrote in message news:xxxxx@ntdev…
> > A method we have used in the past to disable a boot driver (disk/file
> system
> > filters) is to pass values via the boot.ini command line.
> >
> > For example, you can add something like /NOLOAD to the boot.ini and the
> user
> > can select this menu option when booting. In the drivers DriverEntry()
> query
> > the registry for this value and force the driver to do something (fail
to
> > load, etc…)
> >
> > Not sure if this will help you, but it sure is a good way to unload a
> driver
> > that is BSODing on you at boot time.
> >
> > Jamey
> >
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S.
Shatskih
> > Sent: Monday, November 22, 2004 10:35 AM
> > To: Windows System Software Devs Interest List
> > Subject: Re: [ntdev] Boot-start driver. How to display string and get
> > keyboard input?
> >
> > >(\Device\KeyboardClass0 is most likely the terminal services keyboard
> > >for instance). After you have opened them all, you need to send reads
> > >to them all. After you are done, you must close the open handles
before
> >
> > Yes, and note that this is impossible in Boot driver init paths, only in
> > System
> > one, provided it is loaded after the keyboard.
> >
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > xxxxx@storagecraft.com
> > http://www.storagecraft.com
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@tfb.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@tfb.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
I have only tried it from a file system and disk driver. May not work in
other situations, I have NOT tested. Windows uses it for DEBUG, SOS and
FASTDETECT. I can imagine it works quite early.
Jamey
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: Monday, November 22, 2004 12:13 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Boot-start driver. How to display string and get
keyboard input?
Jamey,
How do you reliably retried the boot.ini line or the option from the
boot driver?
–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply
“Jamey Kirby” wrote in message news:xxxxx@ntdev…
> Sorry, I said that backwards. In either case, using boot.ini options only
> requires minor changes to the driver. Using hardware configurations
requires
> the user understand how it works. An installer can easily add a line to
the
> boot.ini file and the user will subsequently be prompted with a menu
> selection.
>
> I have used the hardware profile stuff in the past and it is SICK
>
> Jamey
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Jamey Kirby
> Sent: Monday, November 22, 2004 11:30 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Boot-start driver. How to display string and get
> keyboard input?
>
> How is this simpler? If your DriverEntry() looks for the INI file
parameter,
> there is no need for a special driver if legacy support is needed. Also,
if
> you have a file system driver, PNP is not very useful.
>
> Jamey
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
> Sent: Monday, November 22, 2004 10:52 AM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] Boot-start driver. How to display string and get
> keyboard input?
>
> Actually, a simpler method of this is to create a second hardware profile.
> If the driver is a legacy driver, it can be loaded with a different
service
> key and different registry parameters depending on what is needed. If you
> have a PNP driver, use a small legacy driver to supply the data using the
> legacy technique.
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
>
>
>
>
>
> “Jamey Kirby” wrote in message news:xxxxx@ntdev…
> > A method we have used in the past to disable a boot driver (disk/file
> system
> > filters) is to pass values via the boot.ini command line.
> >
> > For example, you can add something like /NOLOAD to the boot.ini and the
> user
> > can select this menu option when booting. In the drivers DriverEntry()
> query
> > the registry for this value and force the driver to do something (fail
to
> > load, etc…)
> >
> > Not sure if this will help you, but it sure is a good way to unload a
> driver
> > that is BSODing on you at boot time.
> >
> > Jamey
> >
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S.
Shatskih
> > Sent: Monday, November 22, 2004 10:35 AM
> > To: Windows System Software Devs Interest List
> > Subject: Re: [ntdev] Boot-start driver. How to display string and get
> > keyboard input?
> >
> > >(\Device\KeyboardClass0 is most likely the terminal services keyboard
> > >for instance). After you have opened them all, you need to send reads
> > >to them all. After you are done, you must close the open handles
before
> >
> > Yes, and note that this is impossible in Boot driver init paths, only in
> > System
> > one, provided it is loaded after the keyboard.
> >
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > xxxxx@storagecraft.com
> > http://www.storagecraft.com
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@tfb.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@tfb.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@tfb.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
http://ntkernelman.blogspot.com/2004_10_01_ntkernelman_archive.html
Look at the entry from Oct 15th.
Thanks,
Rob
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-194161-
xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: Monday, November 22, 2004 3:13 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Boot-start driver. How to display string and get
keyboard input?Jamey,
How do you reliably retried the boot.ini line or the option from the
boot driver?–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply“Jamey Kirby” wrote in message news:xxxxx@ntdev…
> > Sorry, I said that backwards. In either case, using boot.ini options
> only
> > requires minor changes to the driver. Using hardware configurations
> requires
> > the user understand how it works. An installer can easily add a line to
> the
> > boot.ini file and the user will subsequently be prompted with a menu
> > selection.
> >
> > I have used the hardware profile stuff in the past and it is SICK
> >
> > Jamey
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Jamey Kirby
> > Sent: Monday, November 22, 2004 11:30 AM
> > To: Windows System Software Devs Interest List
> > Subject: RE: [ntdev] Boot-start driver. How to display string and get
> > keyboard input?
> >
> > How is this simpler? If your DriverEntry() looks for the INI file
> parameter,
> > there is no need for a special driver if legacy support is needed. Also,
> if
> > you have a file system driver, PNP is not very useful.
> >
> > Jamey
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
> > Sent: Monday, November 22, 2004 10:52 AM
> > To: Windows System Software Devs Interest List
> > Subject: Re:[ntdev] Boot-start driver. How to display string and get
> > keyboard input?
> >
> > Actually, a simpler method of this is to create a second hardware
> profile.
> > If the driver is a legacy driver, it can be loaded with a different
> service
> > key and different registry parameters depending on what is needed. If
> you
> > have a PNP driver, use a small legacy driver to supply the data using
> the
> > legacy technique.
> >
> >
> > –
> > Don Burn (MVP, Windows DDK)
> > Windows 2k/XP/2k3 Filesystem and Driver Consulting
> >
> >
> >
> >
> >
> > “Jamey Kirby” wrote in message news:xxxxx@ntdev…
> > > A method we have used in the past to disable a boot driver (disk/file
> > system
> > > filters) is to pass values via the boot.ini command line.
> > >
> > > For example, you can add something like /NOLOAD to the boot.ini and
> the
> > user
> > > can select this menu option when booting. In the drivers DriverEntry()
> > query
> > > the registry for this value and force the driver to do something (fail
> to
> > > load, etc…)
> > >
> > > Not sure if this will help you, but it sure is a good way to unload a
> > driver
> > > that is BSODing on you at boot time.
> > >
> > > Jamey
> > >
> > >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S.
> Shatskih
> > > Sent: Monday, November 22, 2004 10:35 AM
> > > To: Windows System Software Devs Interest List
> > > Subject: Re: [ntdev] Boot-start driver. How to display string and get
> > > keyboard input?
> > >
> > > >(\Device\KeyboardClass0 is most likely the terminal services keyboard
> > > >for instance). After you have opened them all, you need to send
> reads
> > > >to them all. After you are done, you must close the open handles
> before
> > >
> > > Yes, and note that this is impossible in Boot driver init paths, only
> in
> > > System
> > > one, provided it is loaded after the keyboard.
> > >
> > > Maxim Shatskih, Windows DDK MVP
> > > StorageCraft Corporation
> > > xxxxx@storagecraft.com
> > > http://www.storagecraft.com
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> > >
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@cdp.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
What OS? I’ve seen this claim before and when I try it on XP or 2003 I get
an error that the key does not exist! I just fired off regedit on my XP
system and the key sure ain’t there!
–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply
“Rob Green” wrote in message news:xxxxx@ntdev…
http://ntkernelman.blogspot.com/2004_10_01_ntkernelman_archive.html
Look at the entry from Oct 15th.
Thanks,
Rob
> -----Original Message-----
> From: xxxxx@lists.osr.com [mailto:bounce-194161-
> xxxxx@lists.osr.com] On Behalf Of Don Burn
> Sent: Monday, November 22, 2004 3:13 PM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] Boot-start driver. How to display string and get
> keyboard input?
>
> Jamey,
>
> How do you reliably retried the boot.ini line or the option from the
> boot driver?
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Remove StopSpam from the email to reply
>
> “Jamey Kirby” wrote in message news:xxxxx@ntdev…
> > Sorry, I said that backwards. In either case, using boot.ini options
> only
> > requires minor changes to the driver. Using hardware configurations
> requires
> > the user understand how it works. An installer can easily add a line to
> the
> > boot.ini file and the user will subsequently be prompted with a menu
> > selection.
> >
> > I have used the hardware profile stuff in the past and it is SICK
> >
> > Jamey
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Jamey Kirby
> > Sent: Monday, November 22, 2004 11:30 AM
> > To: Windows System Software Devs Interest List
> > Subject: RE: [ntdev] Boot-start driver. How to display string and get
> > keyboard input?
> >
> > How is this simpler? If your DriverEntry() looks for the INI file
> parameter,
> > there is no need for a special driver if legacy support is needed. Also,
> if
> > you have a file system driver, PNP is not very useful.
> >
> > Jamey
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
> > Sent: Monday, November 22, 2004 10:52 AM
> > To: Windows System Software Devs Interest List
> > Subject: Re:[ntdev] Boot-start driver. How to display string and get
> > keyboard input?
> >
> > Actually, a simpler method of this is to create a second hardware
> profile.
> > If the driver is a legacy driver, it can be loaded with a different
> service
> > key and different registry parameters depending on what is needed. If
> you
> > have a PNP driver, use a small legacy driver to supply the data using
> the
> > legacy technique.
> >
> >
> > –
> > Don Burn (MVP, Windows DDK)
> > Windows 2k/XP/2k3 Filesystem and Driver Consulting
> >
> >
> >
> >
> >
> > “Jamey Kirby” wrote in message news:xxxxx@ntdev…
> > > A method we have used in the past to disable a boot driver (disk/file
> > system
> > > filters) is to pass values via the boot.ini command line.
> > >
> > > For example, you can add something like /NOLOAD to the boot.ini and
> the
> > user
> > > can select this menu option when booting. In the drivers DriverEntry()
> > query
> > > the registry for this value and force the driver to do something (fail
> to
> > > load, etc…)
> > >
> > > Not sure if this will help you, but it sure is a good way to unload a
> > driver
> > > that is BSODing on you at boot time.
> > >
> > > Jamey
> > >
> > >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S.
> Shatskih
> > > Sent: Monday, November 22, 2004 10:35 AM
> > > To: Windows System Software Devs Interest List
> > > Subject: Re: [ntdev] Boot-start driver. How to display string and get
> > > keyboard input?
> > >
> > > >(\Device\KeyboardClass0 is most likely the terminal services keyboard
> > > >for instance). After you have opened them all, you need to send
> reads
> > > >to them all. After you are done, you must close the open handles
> before
> > >
> > > Yes, and note that this is impossible in Boot driver init paths, only
> in
> > > System
> > > one, provided it is loaded after the keyboard.
> > >
> > > Maxim Shatskih, Windows DDK MVP
> > > StorageCraft Corporation
> > > xxxxx@storagecraft.com
> > > http://www.storagecraft.com
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> > >
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@cdp.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
This isn’t a key but REG_SZ value under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control key. I can see it at my XP SP2 system. I wonder if it is there when no boot options are used.
Best regards,
Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http://www.upek.com]
From: xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com] on behalf of Don Burn[SMTP:xxxxx@acm.org]
Reply To: Windows System Software Devs Interest List
Sent: Monday, November 22, 2004 9:54 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Boot-start driver. How to display string and get keyboard input?What OS? I’ve seen this claim before and when I try it on XP or 2003 I get
an error that the key does not exist! I just fired off regedit on my XP
system and the key sure ain’t there!–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply“Rob Green” wrote in message news:xxxxx@ntdev…
> http://ntkernelman.blogspot.com/2004_10_01_ntkernelman_archive.html
>
> Look at the entry from Oct 15th.
>
> Thanks,
> Rob
>
>
Works for me.
Jamey
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: Monday, November 22, 2004 12:55 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Boot-start driver. How to display string and get
keyboard input?
What OS? I’ve seen this claim before and when I try it on XP or 2003 I get
an error that the key does not exist! I just fired off regedit on my XP
system and the key sure ain’t there!
–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply
“Rob Green” wrote in message news:xxxxx@ntdev…
http://ntkernelman.blogspot.com/2004_10_01_ntkernelman_archive.html
Look at the entry from Oct 15th.
Thanks,
Rob
> -----Original Message-----
> From: xxxxx@lists.osr.com [mailto:bounce-194161-
> xxxxx@lists.osr.com] On Behalf Of Don Burn
> Sent: Monday, November 22, 2004 3:13 PM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] Boot-start driver. How to display string and get
> keyboard input?
>
> Jamey,
>
> How do you reliably retried the boot.ini line or the option from the
> boot driver?
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Remove StopSpam from the email to reply
>
> “Jamey Kirby” wrote in message news:xxxxx@ntdev…
> > Sorry, I said that backwards. In either case, using boot.ini options
> only
> > requires minor changes to the driver. Using hardware configurations
> requires
> > the user understand how it works. An installer can easily add a line to
> the
> > boot.ini file and the user will subsequently be prompted with a menu
> > selection.
> >
> > I have used the hardware profile stuff in the past and it is SICK
> >
> > Jamey
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Jamey Kirby
> > Sent: Monday, November 22, 2004 11:30 AM
> > To: Windows System Software Devs Interest List
> > Subject: RE: [ntdev] Boot-start driver. How to display string and get
> > keyboard input?
> >
> > How is this simpler? If your DriverEntry() looks for the INI file
> parameter,
> > there is no need for a special driver if legacy support is needed. Also,
> if
> > you have a file system driver, PNP is not very useful.
> >
> > Jamey
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
> > Sent: Monday, November 22, 2004 10:52 AM
> > To: Windows System Software Devs Interest List
> > Subject: Re:[ntdev] Boot-start driver. How to display string and get
> > keyboard input?
> >
> > Actually, a simpler method of this is to create a second hardware
> profile.
> > If the driver is a legacy driver, it can be loaded with a different
> service
> > key and different registry parameters depending on what is needed. If
> you
> > have a PNP driver, use a small legacy driver to supply the data using
> the
> > legacy technique.
> >
> >
> > –
> > Don Burn (MVP, Windows DDK)
> > Windows 2k/XP/2k3 Filesystem and Driver Consulting
> >
> >
> >
> >
> >
> > “Jamey Kirby” wrote in message news:xxxxx@ntdev…
> > > A method we have used in the past to disable a boot driver (disk/file
> > system
> > > filters) is to pass values via the boot.ini command line.
> > >
> > > For example, you can add something like /NOLOAD to the boot.ini and
> the
> > user
> > > can select this menu option when booting. In the drivers DriverEntry()
> > query
> > > the registry for this value and force the driver to do something (fail
> to
> > > load, etc…)
> > >
> > > Not sure if this will help you, but it sure is a good way to unload a
> > driver
> > > that is BSODing on you at boot time.
> > >
> > > Jamey
> > >
> > >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S.
> Shatskih
> > > Sent: Monday, November 22, 2004 10:35 AM
> > > To: Windows System Software Devs Interest List
> > > Subject: Re: [ntdev] Boot-start driver. How to display string and get
> > > keyboard input?
> > >
> > > >(\Device\KeyboardClass0 is most likely the terminal services keyboard
> > > >for instance). After you have opened them all, you need to send
> reads
> > > >to them all. After you are done, you must close the open handles
> before
> > >
> > > Yes, and note that this is impossible in Boot driver init paths, only
> in
> > > System
> > > one, provided it is loaded after the keyboard.
> > >
> > > Maxim Shatskih, Windows DDK MVP
> > > StorageCraft Corporation
> > > xxxxx@storagecraft.com
> > > http://www.storagecraft.com
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> > >
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@cdp.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@tfb.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Thanks for the info, this is one I didn’t know!
–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply
“Rob Green” wrote in message news:xxxxx@ntdev…
http://ntkernelman.blogspot.com/2004_10_01_ntkernelman_archive.html
Look at the entry from Oct 15th.
Thanks,
Rob
> -----Original Message-----
> From: xxxxx@lists.osr.com [mailto:bounce-194161-
> xxxxx@lists.osr.com] On Behalf Of Don Burn
> Sent: Monday, November 22, 2004 3:13 PM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] Boot-start driver. How to display string and get
> keyboard input?
>
> Jamey,
>
> How do you reliably retried the boot.ini line or the option from the
> boot driver?
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Remove StopSpam from the email to reply
>
> “Jamey Kirby” wrote in message news:xxxxx@ntdev…
> > Sorry, I said that backwards. In either case, using boot.ini options
> only
> > requires minor changes to the driver. Using hardware configurations
> requires
> > the user understand how it works. An installer can easily add a line to
> the
> > boot.ini file and the user will subsequently be prompted with a menu
> > selection.
> >
> > I have used the hardware profile stuff in the past and it is SICK
> >
> > Jamey
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Jamey Kirby
> > Sent: Monday, November 22, 2004 11:30 AM
> > To: Windows System Software Devs Interest List
> > Subject: RE: [ntdev] Boot-start driver. How to display string and get
> > keyboard input?
> >
> > How is this simpler? If your DriverEntry() looks for the INI file
> parameter,
> > there is no need for a special driver if legacy support is needed. Also,
> if
> > you have a file system driver, PNP is not very useful.
> >
> > Jamey
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
> > Sent: Monday, November 22, 2004 10:52 AM
> > To: Windows System Software Devs Interest List
> > Subject: Re:[ntdev] Boot-start driver. How to display string and get
> > keyboard input?
> >
> > Actually, a simpler method of this is to create a second hardware
> profile.
> > If the driver is a legacy driver, it can be loaded with a different
> service
> > key and different registry parameters depending on what is needed. If
> you
> > have a PNP driver, use a small legacy driver to supply the data using
> the
> > legacy technique.
> >
> >
> > –
> > Don Burn (MVP, Windows DDK)
> > Windows 2k/XP/2k3 Filesystem and Driver Consulting
> >
> >
> >
> >
> >
> > “Jamey Kirby” wrote in message news:xxxxx@ntdev…
> > > A method we have used in the past to disable a boot driver (disk/file
> > system
> > > filters) is to pass values via the boot.ini command line.
> > >
> > > For example, you can add something like /NOLOAD to the boot.ini and
> the
> > user
> > > can select this menu option when booting. In the drivers DriverEntry()
> > query
> > > the registry for this value and force the driver to do something (fail
> to
> > > load, etc…)
> > >
> > > Not sure if this will help you, but it sure is a good way to unload a
> > driver
> > > that is BSODing on you at boot time.
> > >
> > > Jamey
> > >
> > >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S.
> Shatskih
> > > Sent: Monday, November 22, 2004 10:35 AM
> > > To: Windows System Software Devs Interest List
> > > Subject: Re: [ntdev] Boot-start driver. How to display string and get
> > > keyboard input?
> > >
> > > >(\Device\KeyboardClass0 is most likely the terminal services keyboard
> > > >for instance). After you have opened them all, you need to send
> reads
> > > >to them all. After you are done, you must close the open handles
> before
> > >
> > > Yes, and note that this is impossible in Boot driver init paths, only
> in
> > > System
> > > one, provided it is loaded after the keyboard.
> > >
> > > Maxim Shatskih, Windows DDK MVP
> > > StorageCraft Corporation
> > > xxxxx@storagecraft.com
> > > http://www.storagecraft.com
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> > >
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@cdp.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
The BOOT.INI command-line args are somewhere in CurrentControlSet/Control
registry, and yes, they are accessible from within the DriverEntry of the boot
driver.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Jamey Kirby”
To: “Windows System Software Devs Interest List”
Sent: Monday, November 22, 2004 11:22 PM
Subject: RE: [ntdev] Boot-start driver. How to display string and get keyboard
input?
> I have only tried it from a file system and disk driver. May not work in
> other situations, I have NOT tested. Windows uses it for DEBUG, SOS and
> FASTDETECT. I can imagine it works quite early.
>
> Jamey
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
> Sent: Monday, November 22, 2004 12:13 PM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] Boot-start driver. How to display string and get
> keyboard input?
>
> Jamey,
>
> How do you reliably retried the boot.ini line or the option from the
> boot driver?
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Remove StopSpam from the email to reply
>
> “Jamey Kirby” wrote in message news:xxxxx@ntdev…
> > Sorry, I said that backwards. In either case, using boot.ini options only
> > requires minor changes to the driver. Using hardware configurations
> requires
> > the user understand how it works. An installer can easily add a line to
> the
> > boot.ini file and the user will subsequently be prompted with a menu
> > selection.
> >
> > I have used the hardware profile stuff in the past and it is SICK
> >
> > Jamey
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Jamey Kirby
> > Sent: Monday, November 22, 2004 11:30 AM
> > To: Windows System Software Devs Interest List
> > Subject: RE: [ntdev] Boot-start driver. How to display string and get
> > keyboard input?
> >
> > How is this simpler? If your DriverEntry() looks for the INI file
> parameter,
> > there is no need for a special driver if legacy support is needed. Also,
> if
> > you have a file system driver, PNP is not very useful.
> >
> > Jamey
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
> > Sent: Monday, November 22, 2004 10:52 AM
> > To: Windows System Software Devs Interest List
> > Subject: Re:[ntdev] Boot-start driver. How to display string and get
> > keyboard input?
> >
> > Actually, a simpler method of this is to create a second hardware profile.
> > If the driver is a legacy driver, it can be loaded with a different
> service
> > key and different registry parameters depending on what is needed. If you
> > have a PNP driver, use a small legacy driver to supply the data using the
> > legacy technique.
> >
> >
> > –
> > Don Burn (MVP, Windows DDK)
> > Windows 2k/XP/2k3 Filesystem and Driver Consulting
> >
> >
> >
> >
> >
> > “Jamey Kirby” wrote in message news:xxxxx@ntdev…
> > > A method we have used in the past to disable a boot driver (disk/file
> > system
> > > filters) is to pass values via the boot.ini command line.
> > >
> > > For example, you can add something like /NOLOAD to the boot.ini and the
> > user
> > > can select this menu option when booting. In the drivers DriverEntry()
> > query
> > > the registry for this value and force the driver to do something (fail
> to
> > > load, etc…)
> > >
> > > Not sure if this will help you, but it sure is a good way to unload a
> > driver
> > > that is BSODing on you at boot time.
> > >
> > > Jamey
> > >
> > >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S.
> Shatskih
> > > Sent: Monday, November 22, 2004 10:35 AM
> > > To: Windows System Software Devs Interest List
> > > Subject: Re: [ntdev] Boot-start driver. How to display string and get
> > > keyboard input?
> > >
> > > >(\Device\KeyboardClass0 is most likely the terminal services keyboard
> > > >for instance). After you have opened them all, you need to send reads
> > > >to them all. After you are done, you must close the open handles
> before
> > >
> > > Yes, and note that this is impossible in Boot driver init paths, only in
> > > System
> > > one, provided it is loaded after the keyboard.
> > >
> > > Maxim Shatskih, Windows DDK MVP
> > > StorageCraft Corporation
> > > xxxxx@storagecraft.com
> > > http://www.storagecraft.com
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> > >
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@tfb.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
Is there any place that cites what part of which hives gets loaded and/or
accessible at what boot stage. I vaguely remember Inside win2k touched on
this topic, but I guess it is not that clear unless we get on with
windbg/ida !
Registry blocking and intercepting tends to be very pivotal in lot of
solutions, so …
-pro
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
Sent: Monday, November 22, 2004 11:48 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Boot-start driver. How to display string and get
keyboard input?
The BOOT.INI command-line args are somewhere in
CurrentControlSet/Control
registry, and yes, they are accessible from within the DriverEntry of the
boot
driver.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Jamey Kirby”
To: “Windows System Software Devs Interest List”
Sent: Monday, November 22, 2004 11:22 PM
Subject: RE: [ntdev] Boot-start driver. How to display string and get
keyboard
input?
> I have only tried it from a file system and disk driver. May not work in
> other situations, I have NOT tested. Windows uses it for DEBUG, SOS and
> FASTDETECT. I can imagine it works quite early.
>
> Jamey
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
> Sent: Monday, November 22, 2004 12:13 PM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] Boot-start driver. How to display string and get
> keyboard input?
>
> Jamey,
>
> How do you reliably retried the boot.ini line or the option from the
> boot driver?
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Remove StopSpam from the email to reply
>
> “Jamey Kirby” wrote in message news:xxxxx@ntdev…
> > Sorry, I said that backwards. In either case, using boot.ini options
only
> > requires minor changes to the driver. Using hardware configurations
> requires
> > the user understand how it works. An installer can easily add a line to
> the
> > boot.ini file and the user will subsequently be prompted with a menu
> > selection.
> >
> > I have used the hardware profile stuff in the past and it is SICK
> >
> > Jamey
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Jamey Kirby
> > Sent: Monday, November 22, 2004 11:30 AM
> > To: Windows System Software Devs Interest List
> > Subject: RE: [ntdev] Boot-start driver. How to display string and get
> > keyboard input?
> >
> > How is this simpler? If your DriverEntry() looks for the INI file
> parameter,
> > there is no need for a special driver if legacy support is needed. Also,
> if
> > you have a file system driver, PNP is not very useful.
> >
> > Jamey
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
> > Sent: Monday, November 22, 2004 10:52 AM
> > To: Windows System Software Devs Interest List
> > Subject: Re:[ntdev] Boot-start driver. How to display string and get
> > keyboard input?
> >
> > Actually, a simpler method of this is to create a second hardware
profile.
> > If the driver is a legacy driver, it can be loaded with a different
> service
> > key and different registry parameters depending on what is needed. If
you
> > have a PNP driver, use a small legacy driver to supply the data using
the
> > legacy technique.
> >
> >
> > –
> > Don Burn (MVP, Windows DDK)
> > Windows 2k/XP/2k3 Filesystem and Driver Consulting
> >
> >
> >
> >
> >
> > “Jamey Kirby” wrote in message news:xxxxx@ntdev…
> > > A method we have used in the past to disable a boot driver (disk/file
> > system
> > > filters) is to pass values via the boot.ini command line.
> > >
> > > For example, you can add something like /NOLOAD to the boot.ini and
the
> > user
> > > can select this menu option when booting. In the drivers DriverEntry()
> > query
> > > the registry for this value and force the driver to do something (fail
> to
> > > load, etc…)
> > >
> > > Not sure if this will help you, but it sure is a good way to unload a
> > driver
> > > that is BSODing on you at boot time.
> > >
> > > Jamey
> > >
> > >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S.
> Shatskih
> > > Sent: Monday, November 22, 2004 10:35 AM
> > > To: Windows System Software Devs Interest List
> > > Subject: Re: [ntdev] Boot-start driver. How to display string and get
> > > keyboard input?
> > >
> > > >(\Device\KeyboardClass0 is most likely the terminal services keyboard
> > > >for instance). After you have opened them all, you need to send
reads
> > > >to them all. After you are done, you must close the open handles
> before
> > >
> > > Yes, and note that this is impossible in Boot driver init paths, only
in
> > > System
> > > one, provided it is loaded after the keyboard.
> > >
> > > Maxim Shatskih, Windows DDK MVP
> > > StorageCraft Corporation
> > > xxxxx@storagecraft.com
> > > http://www.storagecraft.com
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> > >
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@tfb.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@garlic.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
SYSTEM hive only is accessible at boot stage.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Prokash Sinha”
To: “Windows System Software Devs Interest List”
Sent: Tuesday, November 23, 2004 6:06 PM
Subject: RE: [ntdev] Boot-start driver. How to display string and get keyboard
input?
> Is there any place that cites what part of which hives gets loaded and/or
> accessible at what boot stage. I vaguely remember Inside win2k touched on
> this topic, but I guess it is not that clear unless we get on with
> windbg/ida !
>
> Registry blocking and intercepting tends to be very pivotal in lot of
> solutions, so …
>
> -pro
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
> Sent: Monday, November 22, 2004 11:48 PM
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] Boot-start driver. How to display string and get
> keyboard input?
>
>
> The BOOT.INI command-line args are somewhere in
> CurrentControlSet/Control
> registry, and yes, they are accessible from within the DriverEntry of the
> boot
> driver.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> ----- Original Message -----
> From: “Jamey Kirby”
> To: “Windows System Software Devs Interest List”
> Sent: Monday, November 22, 2004 11:22 PM
> Subject: RE: [ntdev] Boot-start driver. How to display string and get
> keyboard
> input?
>
>
> > I have only tried it from a file system and disk driver. May not work in
> > other situations, I have NOT tested. Windows uses it for DEBUG, SOS and
> > FASTDETECT. I can imagine it works quite early.
> >
> > Jamey
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
> > Sent: Monday, November 22, 2004 12:13 PM
> > To: Windows System Software Devs Interest List
> > Subject: Re:[ntdev] Boot-start driver. How to display string and get
> > keyboard input?
> >
> > Jamey,
> >
> > How do you reliably retried the boot.ini line or the option from the
> > boot driver?
> >
> >
> > –
> > Don Burn (MVP, Windows DDK)
> > Windows 2k/XP/2k3 Filesystem and Driver Consulting
> > Remove StopSpam from the email to reply
> >
> > “Jamey Kirby” wrote in message news:xxxxx@ntdev…
> > > Sorry, I said that backwards. In either case, using boot.ini options
> only
> > > requires minor changes to the driver. Using hardware configurations
> > requires
> > > the user understand how it works. An installer can easily add a line to
> > the
> > > boot.ini file and the user will subsequently be prompted with a menu
> > > selection.
> > >
> > > I have used the hardware profile stuff in the past and it is SICK
> > >
> > > Jamey
> > >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com] On Behalf Of Jamey Kirby
> > > Sent: Monday, November 22, 2004 11:30 AM
> > > To: Windows System Software Devs Interest List
> > > Subject: RE: [ntdev] Boot-start driver. How to display string and get
> > > keyboard input?
> > >
> > > How is this simpler? If your DriverEntry() looks for the INI file
> > parameter,
> > > there is no need for a special driver if legacy support is needed. Also,
> > if
> > > you have a file system driver, PNP is not very useful.
> > >
> > > Jamey
> > >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
> > > Sent: Monday, November 22, 2004 10:52 AM
> > > To: Windows System Software Devs Interest List
> > > Subject: Re:[ntdev] Boot-start driver. How to display string and get
> > > keyboard input?
> > >
> > > Actually, a simpler method of this is to create a second hardware
> profile.
> > > If the driver is a legacy driver, it can be loaded with a different
> > service
> > > key and different registry parameters depending on what is needed. If
> you
> > > have a PNP driver, use a small legacy driver to supply the data using
> the
> > > legacy technique.
> > >
> > >
> > > –
> > > Don Burn (MVP, Windows DDK)
> > > Windows 2k/XP/2k3 Filesystem and Driver Consulting
> > >
> > >
> > >
> > >
> > >
> > > “Jamey Kirby” wrote in message news:xxxxx@ntdev…
> > > > A method we have used in the past to disable a boot driver (disk/file
> > > system
> > > > filters) is to pass values via the boot.ini command line.
> > > >
> > > > For example, you can add something like /NOLOAD to the boot.ini and
> the
> > > user
> > > > can select this menu option when booting. In the drivers DriverEntry()
> > > query
> > > > the registry for this value and force the driver to do something (fail
> > to
> > > > load, etc…)
> > > >
> > > > Not sure if this will help you, but it sure is a good way to unload a
> > > driver
> > > > that is BSODing on you at boot time.
> > > >
> > > > Jamey
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: xxxxx@lists.osr.com
> > > > [mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S.
> > Shatskih
> > > > Sent: Monday, November 22, 2004 10:35 AM
> > > > To: Windows System Software Devs Interest List
> > > > Subject: Re: [ntdev] Boot-start driver. How to display string and get
> > > > keyboard input?
> > > >
> > > > >(\Device\KeyboardClass0 is most likely the terminal services keyboard
> > > > >for instance). After you have opened them all, you need to send
> reads
> > > > >to them all. After you are done, you must close the open handles
> > before
> > > >
> > > > Yes, and note that this is impossible in Boot driver init paths, only
> in
> > > > System
> > > > one, provided it is loaded after the keyboard.
> > > >
> > > > Maxim Shatskih, Windows DDK MVP
> > > > StorageCraft Corporation
> > > > xxxxx@storagecraft.com
> > > > http://www.storagecraft.com
> > > >
> > > >
> > > > —
> > > > Questions? First check the Kernel Driver FAQ at
> > > > http://www.osronline.com/article.cfm?id=256
> > > >
> > > > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > > >
> > > >
> > >
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> > >
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@tfb.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@garlic.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>