IWSDTransportAddress::GetPort method (wsdbase.h)
Gets the IP port number associated with this transport address.
Syntax
HRESULT GetPort(
[out] WORD *pwPort
);
Parameters
[out] pwPort
Port number associated with the address object.
Return value
This method can return one of these values.
Possible return values include, but are not limited to, the following.
Return code | Description |
---|---|
|
Method completed successfully. |
|
pwPort is NULL. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | wsdbase.h (include Wsdapi.h) |
DLL | Wsdapi.dll |