Bewerken

Delen via


KsReferenceSoftwareBusObject function (swenum.h)

This function is intended for internal use only.

The KsReferenceSoftwareBusObject function increments the reference count of the demand-load bus enumerator object's PDO.

Syntax

KSDDKAPI NTSTATUS KsReferenceSoftwareBusObject(
  [in] KSDEVICE_HEADER Header
);

Parameters

[in] Header

Pointer to the device header (extension) of the demand-load bus enumerator.

Return value

Returns STATUS_SUCCESS if the request is handled. Otherwise, it returns an appropriate error code.

Remarks

A minidriver can access this function through the ReferenceDeviceObject member of the BUS_INTERFACE_SWENUM structure.

The device object remains active and enumerated until the reference count returns to 0.

Requirements

Requirement Value
Target Platform Universal
Header swenum.h (include Swenum.h)
Library Ks.lib

See also

BUS_INTERFACE_SWENUM

KsDereferenceSoftwareBusObject

KsQuerySoftwareBusInterface