My knowledge of C is really basic (no pun) as I'm just a beginner. However, there is one thing that I am desperate to be able to do but I know that it is beyond me atm.

I use USB-serial converters to connect imaging equipment to my laptop. As you're aware, XP has a nasty habit of incrementing the serial port number allocated to these devices when they're plugged in. Is there some code to make a small program that can be used before shutdown / after startup to remove all com port allocations.