PsQueryCurrentApiSetSchema

VOID *__stdcall PsQueryCurrentApiSetSchema(){
  PVOID *ApiSetSchema; 
  UINT64 *ApiSetSchemaSize; 
  ApiSetSchema = 0i64;
  if( PsIsCurrentThreadInServerSilo() )
    return(VOID *)PsGetCurrentServerSiloGlobals()[130];
  MmQueryApiSetSchema(&ApiSetSchema, &ApiSetSchemaSize);
  return *ApiSetSchema;
}

Referenced by:

ExIsMultiSessionSku
MiResolveImageReferences