added registry key functions for windows

when on windows OS, the plugin uses the system's registry functions to
find the serial ports