I'm writing a port collision checking function. I need to determine:
- if a certain port is open
- the process name of the daemon
- path of the binary of the daemon
My idea was to run a QProcess executing the native command netstat -abno
and parsing the output. But the parameter -b
requires elevated rights (UAC) and i don't want to bug users with an UAC prompt.
Is there a Qt lib out there providing such functionality? How would you implement this?