IoSetThreadHardErrorMode

VOID __fastcall IoSetThreadHardErrorMode(INT16 EnableHardErrors){
  _ETHREAD *CurrentThread; 

  CurrentThread = (_ETHREAD *)KeGetCurrentThread();
  if( (_BYTE)EnableHardErrors )
    _interlockedbittestandreset((volatile signed __int32 *)&CurrentThread->1296, 4u);
  else
    _interlockedbittestandset((volatile signed __int32 *)&CurrentThread->1296, 4u);
}

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