IWSDUdpAddress::GetSockaddr method (wsdbase.h)

Gets the socket address information.

Syntax

HRESULT GetSockaddr(
  [out] SOCKADDR_STORAGE *pSockAddr
);

Parameters

[out] pSockAddr

Pointer to a SOCKADDR_STORAGE structure that contains the address information.

Return value

Possible return values include, but are not limited to, the following:

Return code Description
S_OK
Method completed successfully.
E_POINTER
pSockAddr is NULL.
E_FAIL
The method failed.

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

See also

IWSDUdpAddress