IoAllowExecution

UINT8 __stdcall IoAllowExecution(_FILE_OBJECT *FileObject){
  DEVICE_OBJECT *DevicePDO; 
  int v2; 
  DevicePDO = IopGetDevicePDO(FileObject->DeviceObject);
  if( !DevicePDO )
    return 1;
  v2 = *((_DWORD *)DevicePDO + 12);
  HalPutDmaAdapter((PADAPTER_OBJECT)DevicePDO);
  return(v2 & 0x800000) == 0;
}

Referenced by:

MiCreateImageOrDataSection