I have a requirement for which I need a client application running on a windows machine to use up (occupy/block) a range of ports so that no other application can use these ports.

This application is to be written using ATL,STL,Win32 SDK. So no MFC please.

The question is what the most efficient way to do this?


TIA