#code=936T950
IFEX %CurFile%.LOG, LOGS * %CurFile%.LOG
ENVI &&WM_DEVICECHANGE                 =0x0219
CALL @CZXZ
_SUB CZXZ,W370H180,重置U盘,,#5,
    EDIT EDIT24,L0T0W20H15,,,0x10
    LABE -trans LABE21,L15T30W95H20,选择磁盘∶,,,15
    LABE -trans LABE22,L57T70W250H300,请选择好您要重置的U盘【USB】、硬盘【SATA】,,0x410000
    LIST LIST21,L110T30W235H200,,
    ITEM ITEM22,L148T105W70H25,重置U盘,CALL CZUP,
    TIME -t:0 TDEVICE,3000, OnNewDrive
    ENVI @this.MSG=_%&WM_DEVICECHANGE%::&&wp,&&lp,  ENVI @TDEVICE=3000;1
    OnNewDrive
_END

_SUB OnNewDrive
    EXEC* &&hds=!fbinst --hdlist "（%T）%P%I %SG %U"
    READ  -*,-1,&&N,&hds
    ENVI @LIST21.VAL=
    ENVI @LIST21.ADD=%&hds%
    ENVI @LIST21.isel=%&N%
_END
