Oh, if you're intentionally just checking for the prefix then it's fine as it is.
I wasn't sure how certain the name of the port is, so I just checked the prefix. I initially wanted to use StrStrI, but this would mean linking against shlwapi, and I didn't want to add that dependency.
Regards, Fabian Maurer