IServiceGroup 介面 (portcls.h)

介面 IServiceGroup 會封裝一組對象,這些物件全都需要相同服務要求的通知。 當服務群組物件收到要求的通知時,會將通知轉送至群組中的每個物件。 PortCls 系統驅動程式會實作 介面, IServiceGroup 並將其公開給迷你埠驅動程式。 迷你埠驅動程式會呼叫 PcNewServiceGroupIServiceGroup建立物件。 IServiceGroup 繼承自 IServiceSink 介面。

埠驅動程式通常會使用服務群組對象來解構中斷服務的要求,雖然服務群組的功能通常足以使其可能適用於其他用途。 如需詳細資訊,請參閱 服務接收和服務群組物件

繼承

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

方法

IServiceGroup 介面具有這些方法。

 
IServiceGroup::AddMember

AddMember 方法會將成員新增至服務群組。
IServiceGroup::CancelDelayedService

CancelDelayedService 方法會取消先前要求的延遲服務。
IServiceGroup::RemoveMember

RemoveMember 方法會從服務群組中移除指定的成員。
IServiceGroup::RequestDelayedService

RequestDelayedService 方法會在指定的延遲之後要求服務。
IServiceGroup::RequestService

深入瞭解:IServiceGroup::RequestService
IServiceGroup::SupportDelayedService

SupportDelayedService 方法表示服務群組應該準備支援延遲的服務。

規格需求

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