PcNewServiceGroup function

The PcNewServiceGroup function creates and initializes a service group.

Syntax


NTSTATUS PcNewServiceGroup(
  _Out_    PSERVICEGROUP *OutServiceGroup,
  _In_opt_ PUNKNOWN      OuterUnknown
);

Parameters

OutServiceGroup [out]

Pointer to the service-group object created by this function. This parameter points to the caller-allocated pointer variable into which the function outputs the pointer to the IServiceGroup object. Specify a valid, non-NULL pointer value for this parameter.

OuterUnknown [in, optional]

Pointer to the IUnknown interface of an object that needs to aggregate the object. Unless aggregation is required, set this parameter to NULL.

Return value

PcNewServiceGroup returns STATUS_SUCCESS if the call was successful. Otherwise, it returns an appropriate error code.

Remarks

The OutServiceGroup and OuterUnknown parameters follow the reference-counting conventions for COM objects.

Requirements

Target platform

Universal

Version

The PortCls system driver implements the PcNewServiceGroup function in Microsoft Windows 98/Me and in Windows 2000 and later operating systems.

Header

Portcls.h (include Portcls.h)

Library

Portcls.lib

IRQL

PASSIVE_LEVEL

See also

IServiceGroup

 

 

Send comments about this topic to Microsoft

Show: