SiCNodeSetAttributes(dwIndex, SIC_SELECTED, FALSE, FALSE, dwACFlag);
SiCNodeSetAttributes(dwIndex, SIC_SELECTED, FALSE, FALSE, dwACFlag, hwndListBox);
void ToggleCheck(HWND hwndListBox, DWORD dwIndex, DWORD dwACFlag){  BOOL  bMoreToResolve;  LPSTR szToggledReferenceName = NULL;  DWORD dwAttributes;  // Checks to see if the checkbox is checked or not checked, and  // toggles the node attributes appropriately.  dwAttributes = SiCNodeGetAttributes(dwIndex, FALSE, dwACFlag);  if(!(dwAttributes & SIC_DISABLED))  {    if(dwAttributes & SIC_SELECTED)    {      SiCNodeSetAttributes(dwIndex, SIC_SELECTED, FALSE, FALSE, dwACFlag);      szToggledReferenceName = SiCNodeGetReferenceName(dwIndex, FALSE, dwACFlag);      ResolveDependees(szToggledReferenceName);    }    else    {      SiCNodeSetAttributes(dwIndex, SIC_SELECTED, TRUE, FALSE, dwACFlag);      bMoreToResolve = ResolveDependencies(dwIndex);      while(bMoreToResolve)        bMoreToResolve = ResolveDependencies(-1);      szToggledReferenceName = SiCNodeGetReferenceName(dwIndex, FALSE, dwACFlag);      ResolveDependees(szToggledReferenceName);    }    InvalidateLBCheckbox(hwndListBox);  }}