Previous Next

IPortMidi::RegisterServiceGroup

The RegisterServiceGroup method registers the service group to be used for the IPortMidi::Notify method.

NTSTATUS
  RegisterServiceGroup(
    IN PSERVICEGROUP  ServiceGroup
    );

Parameters

ServiceGroup
Pointer to the miniport driver's IServiceGroup object that is being registered.

Return Value

RegisterServiceGroup returns STATUS_SUCCESS if the call was successful. Otherwise, the method returns an appropriate error code.

Headers

Declared in portcls.h. Include portcls.h.

Comments

The ServiceGroup parameter follows the reference-counting conventions for COM objects.

Callers of RegisterServiceGroup must run at IRQL PASSIVE_LEVEL.

See Also

IPortMidi::Notify, IServiceGroup