All's in the question...

I need to find how to get SSIDs and to connect to.
I need a code that would work.

i use Managed c++ (the "system::net" like "C");