Re: Importation Visual Basic

Posté par Totof le 10/5/2007 14:46:21
Bonjour,

Vous pouvez essayer cela :

SCIP:cBufferSize = 0
SCIP:irDriveRegs:bFeaturesReg = SMART_ENABLE_SMART_OPERATIONS
SCIP:irDriveRegs:bSectorCountReg = 1
SCIP:irDriveRegs:bSectorNumberReg = 1
SCIP:irDriveRegs:bCylLowReg = SMART_CYL_LOW
SCIP:irDriveRegs:bCylHighReg = SMART_CYL_HI
//Compute the drive number.
SCIP:irDriveRegs:bDriveHeadReg = &HA0 // Or (DriveNum And 1) * 16
SCIP:irDriveRegs:bCommandReg = IDE_EXECUTE_SMART_FUNCTION
SCIP:bDriveNumber = DriveNum


Bon dév.,

Totof

Cette contribution était de : http://old.wdforge.org/newbb/viewtopic.php?forum=17&topic_id=5122&post_id=21127