PDEVICE_OBJECT
IoGetRelatedDeviceObject(
IN PFILE_OBJECT FileObject
);
IoGetRelatedDeviceObject returns a pointer to the device object represented by the given file object.
Parameters
FileObject
Points to the file object representing the open device.
Return Value
IoGetRelatedDeviceObject returns a pointer to the device object.
Comments
The caller must be running at IRQL <= DISPATCH_LEVEL. Usually, callers of this routine are running at IRQL PASSIVE_LEVEL.
See Also