KsGetDevice - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ks.h

KSDDKAPI PKSDEVICE KsGetDevice(
  [in] PVOID Object
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ks-ksgetdevice)

KsGetDevice function

Description

The KsGetDevice function returns the AVStream device structure to which Object belongs.

Parameters

Object [in]

The object to query for the device to which it belongs.

Return value

KsGetDevice returns a pointer to a KSDEVICE structure that is the AVStream device to which Object belongs.

Remarks

Object should be one of: PKSPIN, PKSFILTER, or PKSFILTERFACTORY. Callers must perform appropriate typecasting to PVOID.

Minidrivers typically do not call this function directly. There are a number of functions that perform inline calls to KsGetDevice and that perform typecasting automatically: KsFilterFactoryGetDevice, KsFilterGetDevice, and KsPinGetDevice.

See also

KSDEVICE

KSFILTER

KSFILTERFACTORY

KSPIN

KsFilterFactoryGetDevice

KsFilterGetDevice

KsPinGetDevice