Getting the local address and mask of attached adapters

I need to get the ip address and the mask of all network adapters in the system. WSKGetLocalAddress() seems to get the address of the setting used in WSKBind(). If you bind to all addresses WSKGetLocalAddress() returns 0. I do not see anywhere where the mask is available. What can I do?

Thanks,

Lou

[319 byte] By [LouRich] at [2008-2-21]