我试过,可以访问硬盘的,但不能写硬盘

解决方案 »

  1.   

    只能使用 VWIN32 提供的INT21,MSDN :
    Int 21h Function 7302h Get_ExtDPB (FAT32) 
    [Windows 95 only.]Returns a copy of the extended DPB (FAT32) for any valid drive. Buffer   dw  ?
    DriveDPB DPB <>
    BufferSize equ sizeof DPB + sizeof WORD
    ...
    mov  dx, seg Buffer
    mov  es, dx
    mov  di, offset Buffer  ;See belowmov  dl, DriveNum       ;See below
    mov  cx, BufferSize     ;See below
    mov  ax, 7302h          ;Get_ExtDPB
    int  21hjc  error_handler       ;carry set means error