IoSetThreadHardErrorMode

UINT8 __stdcall IoSetThreadHardErrorMode(UINT8 EnableHardErrors){
  _ETHREAD *CurrentThread; 
  signed __int8 v2; 
  CurrentThread = (_ETHREAD *)KeGetCurrentThread();
  if( EnableHardErrors )
    v2 = _interlockedbittestandreset((volatile signed __int32 *)CurrentThread + 324, 4u);
  else
    v2 = _interlockedbittestandset((volatile signed __int32 *)CurrentThread + 324, 4u);
  return v2 == 0;
}

Referenced by:

CmpCmdHiveClose
CmpCmdHiveOpen
CmpDoFileSetSizeEx
EtwpKernelTraceRundown
EtwpPsProvCaptureState
FsRtlGetFileSize
FsRtlGetVirtualDiskNestingLevel
FsRtlSetFileSize
ObKillProcess
SMKM_STORE::SmStWorker
SmKmEtwAppendObjectName
SmKmFileInfoCleanup
SmKmFileInfoGetPath
SmKmIsVolumeIoPossible
SmKmStoreFileCreate
SmKmStoreFileCreateForIoType
SmKmStoreFileDelete
SmKmStoreFileGetExtents
SmKmStoreFileOpenVolume
SmKmStoreFileWriteHeader
SmKmVolumeQueryUniqueId