IServiceGroup::AddMember method

The AddMember method adds a member to the service group.

Syntax


NTSTATUS AddMember(
  [in]  PSERVICESINK pServiceSink
);

Parameters

pServiceSink [in]

Pointer to the IServiceSink interface of the new member of the service group

Return value

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

Remarks

The AddMember method calls AddRef on the pServiceSink object. When the object is later removed, the RemoveMember method calls Release on the pServiceSink object. This behavior is in accordance with the reference-counting conventions for COM objects.

Requirements

Header

Portcls.h (include Portcls.h)

IRQL

PASSIVE_LEVEL

See also

IServiceSink

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft