KsGetPinFromFileObject - NtDoc

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

PKSPIN KsGetPinFromFileObject(
  [in] PFILE_OBJECT FileObject
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

KsGetPinFromFileObject function

Description

The KsGetPinFromFileObject function returns the AVStream pin object associated with FileObject.

Parameters

FileObject [in]

A pointer to the FILE_OBJECT structure for which to return the associated AVStream pin object.

Return value

KsGetPinFromFileObject returns a pointer to the KSPIN structure associated with FileObject.

Remarks

The minidriver must verify that FileObject is a file object associated with an AVStream pin. Do this by calling KsGetObjectTypeFromFileObject.

This call is an inline call to KsGetObjectFromFileObject. KsGetPinFromFileObject typecasts the return as a PKSPIN.

See also

KsGetObjectFromFileObject

KsGetObjectTypeFromFileObject