CmpLockRegistryExclusive

INT64 __stdcall CmpLockRegistryExclusive(){
  _ETHREAD *CurrentThread; 
  INT64 result; 
  PsBoostThreadIo((__int64)KeGetCurrentThread(), 0i64);
  CurrentThread = (_ETHREAD *)KeGetCurrentThread();
  --*((_WORD *)CurrentThread + 242);
  LOBYTE(result) = ExAcquireResourceExclusiveLite((ERESOURCE *)&CmpRegistryLock, 1u);
  return result;
}

Referenced by:

CmCompleteRegistryInitialization
CmDeleteLayeredKey
CmEnumerateKey
CmEtwRunDown
CmFreezeRegistry
CmGetSystemDriverList
CmInitSystem1
CmRenameKey
CmShutdownSystem
CmThawRegistry
CmpCleanupLightWeightTransaction
CmpCloneHwProfile
CmpCommitLightWeightTransaction
CmpDoParseKey
CmpEnumerateLayeredKey
CmpFinishSystemHivesLoad
CmpLoadHiveThread
CmpLoadHiveVolatile
CmpLockRegistryFreezeAware
CmpMarkCurrentProfileDirty
CmpMountPreloadedHives
CmpRefreshHive
CmpSaveBootControlSet
CmpSetKeySecurity
CmpTransMgrCommitUoW
CmpTransMgrFreeVolatileData
NtCompactKeys
NtCompressKey
NtQueryOpenSubKeys
NtQueryOpenSubKeysEx