IMiniportMidi::Service method (portcls.h)

The Service method notifies the miniport driver of a request for service.

Syntax

void Service();

Return value

None

Remarks

When the port driver calls the miniport driver's IMiniportMidi::Init method, that method outputs a reference to the miniport driver's IServiceGroup object. The port driver adds its own IServiceSink object to this service group and then waits to receive notification of a service request. The source of the notification is typically the miniport driver's interrupt service routine (ISR).

When the miniport driver's ISR calls the port driver's IPortMidi::Notify routine, the port driver queues a deferred procedure call (DPC). When the DPC executes, it calls the RequestService method on each of the IServiceSink objects in the service group. When the DPC calls this method on the port driver's IServiceSink object, the port driver in turn calls the miniport driver's Service method.

Requirements

Requirement Value
Target Platform Universal
Header portcls.h (include Portcls.h)
IRQL DISPATCH_LEVEL

See also

IMiniportMidi

IMiniportMidi::Init

IPortMidi::Notify

IServiceGroup

IServiceSink