IopCopyOffloadCapable

NTSTATUS __stdcall IopCopyOffloadCapable(FILE_OBJECT *FileObject, UINT64 IoControlCode){
  int v2; 
  _DEVICE_OBJECT *RelatedDeviceObject; 
  NTSTATUS result; 
  UINT64 SupportedFeatures; 
  LODWORD(SupportedFeatures) = 0;
  v2 = IoControlCode;
  if( (FileObject->Flags & 0x800) != 0 )
    IoGetAttachedDevice(FileObject->DeviceObject);
  else
    RelatedDeviceObject = IoGetRelatedDeviceObject(FileObject);
  result = FsRtlGetSupportedFeatures(RelatedDeviceObject, &SupportedFeatures);
  if( result >= 0 )
  {
    if( v2 == 606820 )
    {
      if( (SupportedFeatures & 1) == 0 )
        return -1073700191;
    }
    else if( (SupportedFeatures & 2) == 0 )
    {
      return -1073700190;
    }
  }
  return result;
}

Referenced by:

IopXxxControlFile