SepGetCurrentLogLevel

_LEARNING_MODE_LOG_LEVEL __stdcall SepGetCurrentLogLevel(){
  if( KeGetCurrentIrql() )
    return 2;
  else
    return KeGetCurrentThread()->ApcState.InProgressFlags & 1;
}

Referenced by:

SeSetLearningModeObjectInformation
SepGetLearningModeObjectInformation