IMiniportMidi::Service 方法(portcls.h)
Service
方法通知服务请求的微型端口驱动程序。
语法
void Service();
返回值
没有
言论
当端口驱动程序调用微型端口驱动程序的 IMiniportMidi::Init 方法时,该方法将输出对微型端口驱动程序的 IServiceGroup 对象的引用。 端口驱动程序将自己的 IServiceSink 对象添加到此服务组,然后等待接收服务请求的通知。 通知的来源通常是微型端口驱动程序的中断服务例程(ISR)。
当微型端口驱动程序的 ISR 调用端口驱动程序的 IPortMidi::Notify 例程时,端口驱动程序会将延迟的过程调用(DPC)排入队列。 执行 DPC 时,它会对服务组中的每个 IServiceSink 对象调用 RequestService 方法。 当 DPC 在端口驱动程序的 IServiceSink 对象上调用此方法时,端口驱动程序又调用微型端口驱动程序的 Service
方法。
要求
要求 | 价值 |
---|---|
目标平台 | 普遍 |
标头 | portcls.h (包括 Portcls.h) |
IRQL | DISPATCH_LEVEL |