Use correct types
Use hungarian notation
Fix style
Fix style again
Rescue the correct exception: Rex::HostUnreachable
Use PDWORD_PTR and DWORD_PTR
Missed these
Land #4114, @wchen-r7's change to handle Rex::HostUnreachable
Land #4112 - Fix pointer types