| Platform SDK: TAPI | 
Sets the 16-bit port value for the first port and number of ports needed for a session.
HRESULT SetPortInfo( LONG StartPort, LONG NumPorts );
| Value | Meaning | 
|---|---|
| S_OK | Method succeeded. | 
| E_INVALIDARG | The StartPort or NumPorts parameter is not valid. | 
| E_OUTOFMEMORY | Insufficient memory exists to perform the operation. | 
| E_FAIL | Unspecified error. | 
| E_NOTIMPL | This method is not yet implemented. | 
  Windows NT/2000: Requires Windows 2000.
  Version: Requires TAPI 3.0 or later.
  Header: Declared in Sdpblb.h.
  Library: Use Sdpblbid.lib.