based on reading the source code of smartmontools, I can use IOCTL_IDE_PASS_THROUGH to implement the "read native max address" command, but I do not know how to implement the "read native max address ext". According the ATA manual, it is about
the value of HOB in Device Control Register. But the manual does not provide how to set HOB 1 or 0. So I do not know how operate the "read native max address ext" command. My test disk is IDE-160GB.