> So, I want to use INT10 to show some information, but I can’t use it, maybe
because it’s in real-mode.
Forget about this, use HalDisplayString or ZwDisplayString.
int10 can be used only by your video miniport (.SYS) to switch modes and do power management. Use VideoPortInt10 for this.
also can’t use INT16, Is it means I should read information
Forget about int16 at all. It cannot be used after NT was loaded.
Use ZwCreateFile on keyboard and then ZwReadFile for it. Note that you can do this only before the Windows GUI is loaded.
Now, why i want to use INT13;
You just cannot use int13 from NT kernel mode. You can use int10 with lots of limitations, but not int13 for sure due to lots of
reasons.
Forget about this.
Because I want to write some physical-sectors directly
Open \Device\Harddisk%d\Partition0 and write there.
, then mark these
sectors to error-sector,
This is done in filesystem-dependent-way.
1.Is these other method to display text on the screen?
ZwDisplayString/HalDisplayString.
2 .how to get key-press at WDM driver?
ZwCreateFile on keyboard and then ZwReadFile. You can do this only BEFORE the Windows GUI is loaded.
- how to read/write/mark physical-sectors at WDM driver?
What do you mean by “mark”? “Mark as a bad” is a filesystem notion and not the disk stack notion.
As about read/write - open \Device\Harddisk%d\Partition0 and do this.
Max
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com