how to programmatically get subnet mask

V

Vinod Kumar P

Dear all

How can I programmatically get the subnet mask of the network
associated with my machine's one of the NICs? ( my machine has to
NICs.) Do we have some standard C/winsock function for that? Or else
is there any other way to get it from my machine inside my C program.
This is to
eliminate a packet coming from another network.

I am working on win 2000 and winsock 2

Thanks for all your advices
Reply if any clarifications needed

Vinod Kumar P
 
H

Herb Martin

How can I programmatically get the subnet mask of the network
associated with my machine's one of the NICs? ( my machine has to
NICs.) Do we have some standard C/winsock function for that? Or else
is there any other way to get it from my machine inside my C program.
This is to eliminate a packet coming from another network.

You might try one of the programming/network groups but if you
are searching MSDN (which is your first source for such as this)
then try: "IP Helper" interfaces or API.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top