Bewerken

Delen via


KsFilterFactorySetDeviceClassesState function (ks.h)

The KsFilterFactorySetDeviceClassesState function enables or disables the device classes that have been registered by a given filter factory.

Syntax

KSDDKAPI NTSTATUS KsFilterFactorySetDeviceClassesState(
  [in] PKSFILTERFACTORY FilterFactory,
  [in] BOOLEAN          NewState
);

Parameters

[in] FilterFactory

A pointer to the KSFILTERFACTORY for which to change device class status.

[in] NewState

If set to TRUE, the device classes are enabled; if FALSE, they are disabled.

Return value

KsFilterFactorySetDeviceClassesState returns STATUS_SUCCESS or an error code.

Remarks

This function is available in Windows XP and DirectX 8.0 and later.

Requirements

Requirement Value
Minimum supported client Available in Microsoft Windows XP and later operating systems and DirectX 8.0 and later DirectX versions.
Target Platform Universal
Header ks.h (include Ks.h)
Library Ks.lib
IRQL PASSIVE_LEVEL