DirectX SDK

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 do not play.

HRESULT RemovePort(
  IDirectMusicPort* pPort
);

Parameters

pPort
Port to remove.

Return Values

If the method succeeds, the return value is S_OK.

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

E_INVALIDARG
E_POINTER

Requirements

  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