Re: how to display messages during boot time
From: Carl Woodward (carl_at_nowhere.com)
Date: 08/14/04
- Next message: Don Burn: "Re: how to display messages during boot time"
- Previous message: Don Burn: "Re: newbie: ExAllocatePoolWithTag"
- In reply to: Charles: "how to display messages during boot time"
- Next in thread: Don Burn: "Re: how to display messages during boot time"
- Reply: Don Burn: "Re: how to display messages during boot time"
- Messages sorted by: [ date ] [ thread ]
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
>
>
- Next message: Don Burn: "Re: how to display messages during boot time"
- Previous message: Don Burn: "Re: newbie: ExAllocatePoolWithTag"
- In reply to: Charles: "how to display messages during boot time"
- Next in thread: Don Burn: "Re: how to display messages during boot time"
- Reply: Don Burn: "Re: how to display messages during boot time"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|