I have an HTC sensation boot 1.17.008 which I cannot read the code from. I tried all the methods posted and none worked.
Alfa helped me unlock it using a different method.
Here are the instructions:
1. If ur device is S-on download - http://revolutionary.io/
2. Connect debice in usb debbuging and open .exe file from downloaded archive
3. U will get serial number from CMD and put in http://revolutionary.io/ site to generate beta key
4. enter beta key in same CMD and press enter
5. wait 3-4 minutes, phone will restart few times in fast boot
6. now ur phone will be s-off
7. revolutionary will ask for installing recovery - select no
8. download nbh file from here http://www.multiupload.com/SV6XYPFQ7E
9. Copy to root of memory card and enter Sensation in h-boot mode (Volume Down + Power)
10. Wait 10/15 seconds for h-boot finding corect .nbh file, phone will enter in diagnostic mode