How get all resolution of a webcam?

other apps can query the resolution (e.g. using low-level dshow code),
while your approach is probing it,

actually changing the resolution is expensive, the whole graph has to be destroyed and rebuilt.