KsTerminateDevice function (ks.h)

The KsTerminateDevice function removes an AVStream device.

Syntax

void KsTerminateDevice(
  [in] PDEVICE_OBJECT DeviceObject
);

Parameters

[in] DeviceObject

A pointer to a DEVICE_OBJECT structure corresponding to the device for which to remove AVStream support.

Return value

None

Remarks

Normally, AVStream calls KsTerminateDevice upon receipt of a PnP remove device IRP (IRP_MN_REMOVE_DEVICE). Most minidrivers do not call this function directly; however, it can be used to remove AVStream support for the device given in DeviceObject.

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

See also

DEVICE_OBJECT

DRIVER_OBJECT

KSDEVICE

KsAddDevice

KsCreateDevice

KsInitializeDevice

KsInitializeDriver