Fix rehash function
Fix rehash function

Use SendMessageTimeout instead of SendMessage which was causing the
system to hang in some scenarios
Use ctypes to access the dll directly instead of using pywin32 as this
seems to actually work

saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt