CmpLightWeightPrepareSetKeyUserFlags

NTSTATUS __stdcall CmpLightWeightPrepareSetKeyUserFlags(_CM_KCB_UOW *UoW){
  _CM_KEY_CONTROL_BLOCK *KeyControlBlock; 
  _HHIVE *KeyHive; 
  unsigned int KeyCell; 
  NTSTATUS v4; 
  int v6; 
  int v7; 

  v6 = -1;
  v7 = 0;
  KeyControlBlock = UoW->KeyControlBlock;
  KeyHive = KeyControlBlock->KeyHash.KeyHive;
  KeyCell = KeyControlBlock->KeyHash.KeyCell;
  if( !KeyHive->GetCellRoutine(KeyHive, KeyCell, (_HV_GET_CELL_CONTEXT *)&v6) )
    return -1073741670;
  v4 = HvpMarkCellDirty(KeyHive, (PVOID)KeyCell, 0, CmHiveDirtyNormal) == 0 ? 0xC000017D : 0;
  KeyHive->ReleaseCellRoutine(KeyHive, (_HV_GET_CELL_CONTEXT *)&v6);
  return v4;
}

Referenced by:

CmpProcessLightWeightUOW