I need to connect to an SMB server, that is running on a custom port (e.g. 15623). I know net use
supports specifying /tcpport
, but I was hoping for a library call such as WNetAddConnection2
.
Unfortunately, WNetAddConnection2
does not appear to have a way to specify the port in the UNC path.
Are there other any other functions available that allow specifying SMB server TCP port?