IUnregisterPhysicalConnection 接口 (portcls.h)

接口 IUnregisterPhysicalConnection 实现三种方法来删除已注册的物理连接。 端口驱动程序实现此接口。 为了确定端口驱动程序是否支持 IUnregisterPhysicalConnection 接口,微型端口驱动程序使用 REFIID IID_IUnregisterPhysicalConnection调用端口驱动程序对象的 QueryInterface 方法。 微型端口驱动程序负责在不再需要对象后释放 IUnregisterPhysicalConnection 该对象。 接口 IUnregisterPhysicalConnection 继承自 IUnknown

以下端口驱动程序支持 接口 IUnregisterSubdevice

  • WaveCyclic
  • WavePci
  • 拓扑
  • DMus
  • MIDI
此接口中的三种方法“注销”物理连接,这些连接以前通过调用 PcRegisterPhysicalConnectionPcRegisterPhysicalConnectionFromExternalPcRegisterPhysicalConnectionToExternal 例程注册。 PortCls 支持三个 PcRegisterPhysicalConnectionXxx 例程。

端口驱动程序使用它从 PcRegisterPhysicalConnectionXxx 调用中获取的信息来响应 KSPROPERTY_PIN_PHYSICALCONNECTION 属性请求。

从适配器的拓扑中删除子设备时,驱动程序必须注销子设备与拓扑的该部分的物理连接。 未能注销子设备的物理连接可能会导致内存泄漏。

继承

IUnregisterPhysicalConnection 接口继承自 IUnknown 接口。 IUnregisterPhysicalConnection 也具有以下类型的成员:

方法

IUnregisterPhysicalConnection 接口具有这些方法。

 
IUnregisterPhysicalConnection::UnregisterPhysicalConnection

UnregisterPhysicalConnection 方法删除以前调用 PcRegisterPhysicalConnection 注册的物理连接的注册。
IUnregisterPhysicalConnection::UnregisterPhysicalConnectionFromExternal

UnregisterPhysicalConnectionFromExternal 方法删除以前调用 PcRegisterPhysicalConnectionFromExternal 注册的物理连接的注册。
IUnregisterPhysicalConnection::UnregisterPhysicalConnectionToExternal

UnregisterPhysicalConnectionToExternal 方法删除以前调用 PcRegisterPhysicalConnectionToExternal 注册的物理连接的注册。

要求

要求
目标平台 Windows
标头 portcls.h