Here is some explanation to my demo code:
Q: Why code for 95 is too much late than the code for NT?
A: When I finished testing code for NT, and write code for 95, my
Delphi failed to compile my demo code, it always complained:
"Internal error",
, I had to restart my machine.
Q: What's the main diffience under NT and 95?
A: 1. KeyPath and Value.
2. NT allows Multiple IPAddress to be bind into one interface,
so it can not use a string type to stroe the data. In fact, it is
a type called "strings", i.e., stores string by string, end with
a null string. ex. 'String1/0String2/0String3/0' is a strings
which contains 3 strings. So to the netmask storage.
Q: Any more comment?
A: 1. 'MSTCP' in example code for 95 is not general, it is the string
to describ that you are installing "Microsoft TCP/IP protocol",
2. If you have multiple netcards, then you can increase '0001'
in the code for 95 and '1' in the code for NT. And there might be
some network card interface not binded to TCP/IP protocol, of
course you can not get the address/netmask information of such
ones.