IPortWMIRegistration 介面 (portcls.h)

介面 IPortWMIRegistration 是在 Windows 7 和更新版本的 Windows 中提供。 此介面可讓迷你埠驅動程序協調 Windows (ETW 的事件追蹤,) PortCls 與迷你埠驅動程式之間的註冊。

ETW 提供機制來追蹤和記錄使用者模式應用程式和核心模式驅動程式所引發的事件。 如需 ETW 的詳細資訊,請參閱 Windows 事件追蹤 和使用 ETW 改善偵錯和效能微調

繼承

IPortWMIRegistration 介面繼承自 IUnknown 介面。 IPortWMIRegistration 也有下列類型的成員:

方法

IPortWMIRegistration 介面具有這些方法。

 
IPortWMIRegistration::RegisterWMIProvider

RegisterWMIProvider 方法會向 PortCls 註冊迷你埠驅動程式的事件追蹤 (ETW) 功能。
IPortWMIRegistration::UnregisterWMIProvider

UnregisterWMIProvider 方法會取消註冊先前使用 RegisterWMIProvider 方法呼叫註冊的 Windows 事件追蹤 (ETW) 介面。 取消註冊會停用具有 PortCls 的 ETW 註冊。

規格需求

需求
目標平台 Windows
標頭 portcls.h