IDirectMusicPerformance::RemovePort

The IDirectMusicPerformance::RemovePort method removes a port from the performance. Any PChannels that map to this port are invalidated and messages stamped with them will not play.

HRESULT RemovePort(
  IDirectMusicPort* pPort
);
 

Parameters

pPort
The port to remove.

Return Values

If the method succeeds, the return value is S_OK.

If the method fails, it may return one of the following error values:

E_INVALIDARG
E_POINTER

QuickInfo

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in dmusici.h.

See Also

IDirectMusicPerformance::AddPort