争怎路由网/网站教程/内容

让硬盘休眠-ParkDisk程序

网站教程2024-07-16 阅读
 PROCEDURE ParkDisk;
  VAR Regs: Registers;
  BEGIN
    Regs.AL := $00;
    Intr($13,Regs);
    Assert((Regs.Flags AND FCarry) = 0,
      'Error getting disk parameters - AL returns '+IntToStr  (Regs.AL,0));
    Regs.AH := $0C;
    Regs.DL := $80;
    Intr($13,Regs);
    Assert((Regs.Flags AND FCarry) = 0,
      'Error parking disk - AL returns '+IntToStr(Regs.AL,0));
  END; 

……

相关阅读