I forgot my WD Passport Ultra disk's hardware encryption password and I am having a Delphi software being programmed for finding this password using brute force method. Original WD Security software will be used for password entries, but WD Security software locks itself at every 5 wrong password entries. Then the drive needs to be physically ejected and plugged in to reset this counter.
Therefore the software being programmed must emulate safely removing and plugging in of an external USB hard disk drive on Windows on software level, as this is necessary for resetting the wrong password counter of WD Security software.
Disabling/enabling the drive using "devcon" does not reset the counter.
Finding out the storage location of this counter information would be very helpful. When the counter is at 4, safely removing the drive and plugging in to another computer resets the counter. This made me guess that the counter is stored on the USB drive and it is reset by drive's firmware during plugging in process.
Any ideas will be greatly appreciated.