how to programmatically get subnet mask

  • Thread starter Thread starter Vinod Kumar P
  • Start date Start date
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
 
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.
 
Back
Top