KsGetObjectFromFileObject function

The KsGetObjectFromFileObject function returns the AVStream object cast to PVOID from FileObject.

Syntax


PVOID KsGetObjectFromFileObject(
  _In_ PFILE_OBJECT FileObject
);

Parameters

FileObject [in]

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

Return value

KsGetObjectFromFileObject returns a pointer to the AVStream object associated with FileObject (cast to PVOID). This pointer may point to a KSFILTER or a KSPIN, for example.

Requirements

Target platform

Universal

Version

Available in Microsoft Windows XP and later operating systems and DirectX 8.0 and later DirectX versions.

Header

Ks.h (include Ks.h)

Library

Ks.lib

IRQL

Any level

See also

KsGetObjectTypeFromFileObject
KsGetFilterFromFileObject
KsGetPinFromFileObject
KsPinGetConnectedPinFileObject

 

 

Send comments about this topic to Microsoft

Show: