ViInitSystemPhase1

INT64 __stdcall ViInitSystemPhase1(){
  INT64 result; 
  if( ViVerifierEnabled )
  {
    VfPoolInitPhase1();
    VfSettingsMiscellaneousChecksInitPhase1();
    VfPendingInitPhase1();
  }
  PsSetCreateProcessNotifyRoutine(ViCreateProcessCallback, 0);
  result = (unsigned int)ViImageExecutionOptions;
  ViFaultsProcessNotifyRoutineSet = 1;
  if( ViImageExecutionOptions == 1 )
    _InterlockedOr((volatile signed __int32 *)&KUSER_SHARED_DATA.ImageFileExecutionOptions, ViImageExecutionOptions);
  return result;
}

Referenced by:

VerifierInitSystem