IUnregisterPhysicalConnection 接口 (portcls.h)
接口 IUnregisterPhysicalConnection
实现三种方法来删除已注册的物理连接。 端口驱动程序实现此接口。 为了确定端口驱动程序是否支持 IUnregisterPhysicalConnection
接口,微型端口驱动程序使用 REFIID IID_IUnregisterPhysicalConnection调用端口驱动程序对象的 QueryInterface 方法。 微型端口驱动程序负责在不再需要对象后释放 IUnregisterPhysicalConnection
该对象。 接口 IUnregisterPhysicalConnection
继承自 IUnknown。
以下端口驱动程序支持 接口 IUnregisterSubdevice
:
- WaveCyclic
- WavePci
- 拓扑
- DMus
- MIDI
端口驱动程序使用它从 PcRegisterPhysicalConnectionXxx 调用中获取的信息来响应 KSPROPERTY_PIN_PHYSICALCONNECTION 属性请求。
从适配器的拓扑中删除子设备时,驱动程序必须注销子设备与拓扑的该部分的物理连接。 未能注销子设备的物理连接可能会导致内存泄漏。
继承
IUnregisterPhysicalConnection 接口继承自 IUnknown 接口。 IUnregisterPhysicalConnection 也具有以下类型的成员:
方法
IUnregisterPhysicalConnection 接口具有这些方法。
IUnregisterPhysicalConnection::UnregisterPhysicalConnection UnregisterPhysicalConnection 方法删除以前调用 PcRegisterPhysicalConnection 注册的物理连接的注册。 |
IUnregisterPhysicalConnection::UnregisterPhysicalConnectionFromExternal UnregisterPhysicalConnectionFromExternal 方法删除以前调用 PcRegisterPhysicalConnectionFromExternal 注册的物理连接的注册。 |
IUnregisterPhysicalConnection::UnregisterPhysicalConnectionToExternal UnregisterPhysicalConnectionToExternal 方法删除以前调用 PcRegisterPhysicalConnectionToExternal 注册的物理连接的注册。 |
要求
要求 | 值 |
---|---|
目标平台 | Windows |
标头 | portcls.h |
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈