KsGetObjectTypeFromIrp - NtDoc

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

KSDDKAPI KSOBJECTTYPE KsGetObjectTypeFromIrp(
  [in] PIRP Irp
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

KsGetObjectTypeFromIrp function

Description

The KsGetObjectTypeFromIrp function returns the AVStream object type that is associated with a given IRP.

Parameters

Irp [in]

A pointer to the IRP structure for which to find the associated AVStream object type.

Return value

KsGetObjectTypeFromIrp returns the type of AVStream object associated with the given IRP as a KSOBJECTTYPE enumeration. This is one of the following: KsObjectTypeDevice, KsObjectTypeFilterFactory, KsObjectTypeFilter, KsObjectTypePin.

Remarks

The KsGetObjectTypeFromIrp function does not check that the I/O request packet (IRP) is associated with a KS object. If it is not, this may result in a memory access error. Driver developers should consider using structured exception handling to catch a possible exception.

See also

IRP

KsAddIrpToCancelableQueue

KsDispatchIrp

KsForwardIrp