for(i = 0; i < dwItems; i++)
siCTemp = SiCNodeGetObject(i, TRUE, AC_ALL); if(IsInList(i, dwItems, dwItemsSelected))
void SiCNodeSetItemsSelected(DWORD dwItems, DWORD *dwItemsSelected){  DWORD i;  DWORD dwCount;  siC   *siCTemp;  dwCount = 0;  siCTemp = siComponents;  if(siCTemp != NULL)  {    for(i = 0; i < dwItems; i++)    {      if(dwItemsSelected[i] == dwCount)      {        /* Found the item that was selected, set the */        /* SIC_SELECTED attribute and break*/        if((siCTemp->lRandomInstallPercentage == 0) ||           (siCTemp->lRandomInstallPercentage > siCTemp->lRandomInstallValue))          siCTemp->dwAttributes |= SIC_SELECTED;        else          siCTemp->dwAttributes &= ~SIC_SELECTED;        break;      }      else        /* unset the SIC_SELECTED attribute and */        /* keep looking for the selected item (if any) */        siCTemp->dwAttributes &= ~SIC_SELECTED;    }      ++dwCount;    siCTemp = siCTemp->Next;    while((siCTemp != NULL) && (siCTemp != siComponents))    {      for(i = 0; i < dwItems; i++)      {        if(dwItemsSelected[i] == dwCount)        {          /* Found the item that was selected, set the */          /* SIC_SELECTED attribute and break*/          if((siCTemp->lRandomInstallPercentage == 0) ||             (siCTemp->lRandomInstallPercentage > siCTemp->lRandomInstallValue))            siCTemp->dwAttributes |= SIC_SELECTED;          else            siCTemp->dwAttributes &= ~SIC_SELECTED;          break;        }        else          /* unset the SIC_SELECTED attribute and */          /* keep looking for the selected item (if any) */          siCTemp->dwAttributes &= ~SIC_SELECTED;      }            ++dwCount;      siCTemp = siCTemp->Next;    }  }}