Re: how to display messages during boot time

From: Carl Woodward (carl_at_nowhere.com)
Date: 08/14/04


Date: Sat, 14 Aug 2004 19:03:32 GMT

Charles,

Try this function:

NTSYSAPI
NTSTATUS
NTAPI
ZwDisplayString(
    IN PUNICODE_STRING String
);

Autochk.exe, the disk checker that occasionally kicks in as XP boots uses
this fucntion to print strings to the screen. Note that this will only
display strings if the video driver hasn't taken over yet, I imagine this is
around when Csrss.exe kicks off and implementes the windowing stations
etc... You will need the SeTcbPrivilege for this routine to succeed.

Hope that helps,

Carl

"Charles" <Charles_Lin@jadecom.com.tw> wrote in message
news:%23acV8XigEHA.2468@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> I have written a scsi miniport driver and it works well when I choose the
> "multi(0)disk(0)rdisk(0)partion(1)..."
> option defined in the boot.ini during boot time. I copied the driver into
> the root and renamed it as ntbootdd.sys.
> I added another option "scsi(0)disk(0)rdisk(0)..." in the boot.ini. When
> the
> system boots, I choose the scsi option.
> But the same driver ntbootdd.sys seems failed.
>
> I want to display some messages to the text mode screen in my driver like
> ntldr.exe does, so I could debug my
> driver. Does anybody know how to do that ?
>
> Thanks in advance
>
> Clin
>
>



Relevant Pages

  • cant boot FC2 test2 for install
    ... by itself, and it boots. ... My scsi card is an advansys ABP-930U, a decent card I'm not about to ... Obviously there isn't a driver for it in the boot.iso. ... Copyright 2004 by Maurice Eugene Heskett, ...
    (Fedora)
  • PCMCIA product id strings -> hashes generation at compilation time? [Was: Re: [patch 14/38] pcmci
    ... Most pcmcia devices are matched to drivers using "product ID strings" ... embedded in the devices' Card Information Structures, ... Only the hashes are stored in "modules.alias", ... While having to determine the crc32 hashes is a hassle to device driver ...
    (Linux-Kernel)
  • RE: Windows error
    ... When it boots up again, I get a error message from ... Nvidia (GeForce drivers) driver downloads: ... Then click on Programs Tab and click Manage Add-Ons and Disable all non ... You may have a bad RAM try to test your RAM by running Memtest by ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: updateRow() Fails
    ... This driver does not implement prepared statements in a compliant manner. ... Instead of using parameterized operations where there is no conversion of ... strings, the driver converts all parameters to string values for use in text ...
    (microsoft.public.sqlserver.jdbcdriver)
  • Re: bindings 4 a rookie...
    ... the Driver X's because of the narrow fit of the Malamutes didn't fit ... the Burton P1 Carbon bindings and switched boots as well to the Burton Ions. ...
    (rec.skiing.snowboard)