| Microsoft DirectX 9.0 SDK Update (October 2004) | 
The RemovePort method removes a port from the performance. Any 
Syntax
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 error values shown in the following table.
| Return code | 
| E_INVALIDARG | 
| E_POINTER | 
Remarks
A port added by passing NULL to IDirectMusicPerformance8::AddPort cannot be removed by passing NULL to RemovePort.
This method should not be called by applications that use audiopaths.
Requirements
  Header: Dmusici.h
  Library: Dmime.dll, Dmimed.dll
See Also