This method will check to see if the IP and port specified are currently in use by attempting to bind a socket using them.
HRESULT IsAddrInUse(
[in] long lIP,
[in] long lPort
);
Parameters
lIP
the IP address
lPort
the TCP port
Return Values
a standard HRESULT value. The method will succeed if the socket is successfully bound, or an error otherwise.
Remarks
The IP address should be in a standard packed 4 byte integer.