Assign IP address programmatically

Can I assign an IP address(not through the network cpl but programmatically)
at the time of installing my network adapter and TCP protocol stack. Like an
entry in the INf file or through install shield scripts.

Thanks
Daniel


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Daniel,

The following registry entries correspond to the IP configuration of the
network address. These are from a .reg export but you can use the reg-write
functions of installsheild to create the entries. Also note that the IP
Addresses are nul terminated (00,00 at the end). Without this the entries
dont work properly.

%NIC% = the service key for your network adapter (i.e. Loop1)

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services%NIC%\Parameters\Tcpip
]
“EnableDHCP”=dword:00000000
“IPAddress”=hex(7):31,39,32,2e,31,36,38,2e,31,30,2e,32,00,00
“SubnetMask”=hex(7):32,35,35,2e,32,35,35,2e,32,35,35,2e,30,00,00
“DefaultGateway”=hex(7):31,39,32,2e,31,36,38,2e,31,30,2e,31,00,00

Yousef Hamade
xxxxx@fmr.com

-----Original Message-----
From: Daniel Pradeep [mailto:xxxxx@broadlogic.com]
Sent: Wednesday, December 20, 2000 3:20 PM
To: NT Developers Interest List
Subject: [ntdev] Assign IP address programmatically

Can I assign an IP address(not through the network cpl but programmatically)
at the time of installing my network adapter and TCP protocol stack. Like an
entry in the INf file or through install shield scripts.

Thanks
Daniel


You are currently subscribed to ntdev as: xxxxx@fmr.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Yousef,

Does this work on 98, me and w2k.

Thanks
Daniel

-----Original Message-----
From: Hamade, Yousef [mailto:xxxxx@FMR.COM]
Sent: Wednesday, December 20, 2000 12:57 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Assign IP address programmatically

Daniel,

The following registry entries correspond to the IP configuration of the
network address. These are from a .reg export but you can use the reg-write
functions of installsheild to create the entries. Also note that the IP
Addresses are nul terminated (00,00 at the end). Without this the entries
dont work properly.

%NIC% = the service key for your network adapter (i.e. Loop1)

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services%NIC%\Parameters\Tcpip
]
“EnableDHCP”=dword:00000000
“IPAddress”=hex(7):31,39,32,2e,31,36,38,2e,31,30,2e,32,00,00
“SubnetMask”=hex(7):32,35,35,2e,32,35,35,2e,32,35,35,2e,30,00,00
“DefaultGateway”=hex(7):31,39,32,2e,31,36,38,2e,31,30,2e,31,00,00

Yousef Hamade
xxxxx@fmr.com

-----Original Message-----
From: Daniel Pradeep [mailto:xxxxx@broadlogic.com]
Sent: Wednesday, December 20, 2000 3:20 PM
To: NT Developers Interest List
Subject: [ntdev] Assign IP address programmatically

Can I assign an IP address(not through the network cpl but programmatically)
at the time of installing my network adapter and TCP protocol stack. Like an
entry in the INf file or through install shield scripts.

Thanks
Daniel


You are currently subscribed to ntdev as: xxxxx@fmr.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@broadlogic.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com