LOST
LOST

Reputation: 3284

Is there a Windows API, that connects an SMB share on a custom port?

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?

Upvotes: 0

Views: 57

Answers (0)

Related Questions