Foggers generally do not have a long residual and may not kill the queen if it does not come in contact with her. Bonide Total Release Flea Fogger has an IGR (insect growth regulators) that will stop the life cycle of certain pests.
For carpenter ants, we would recommend using our Carpenter Ant Kit #1. There are two product in it that work together to combat ants. They will take this back to the colony to eliminate the queen. The kit has a sugar and a protein to take care of both of their food sources.