IopSetRelationsTag

NTSTATUS __stdcall IopSetRelationsTag(
        _RELATION_LIST *List,
        PDEVICE_OBJECT DeviceObject,
        _DEVICE_TAGGED_FOR_REMOVAL Tagged){
  NTSTATUS v4; 
  char v5; 
  int v6; 

  PipIsDeviceInDeviceObjectList();
  if( !v5 )
    return -1073741810;
  v6 = MEMORY[0x10];
  if( (MEMORY[0x10] & 1) != 0 )
  {
    --List->DeviceObjectList->TagCount;
    v6 = MEMORY[0x10];
  }
  MEMORY[0x10] = v6 | 1;
  ++List->DeviceObjectList->TagCount;
  return v4;
}

Referenced by:

PnpChainDereferenceComplete
PnpInvalidateRelationsInList