50. FAQ o Win API |
Q> How program to change IP the address? 1. We open HKEY_LOCAL_MACHINE 2. We search subKey = for SOFTWARE \Microsoft \Windows NT\CurrentVersion\NetworkCards \"netcard#" "netcard#" network interface card number (it is normal 1) 3. We take value "ServiceName" 4. We search subKey = SYSTEM\CurrentControlSet\Services \"ServiceName" \Parameters\TcpIp" 5. We install "IpAddress" for change IP of the address 6. We install "SubnetMask" for change subnet mask 7. We install "DefaultGateway" for change default gateway 8. We are overloaded. Q> How program to change HostName? 1. We open HKEY_LOCAL_MACHINE 2. We search subKey = SYSTEM\CurrentControlSet\Services\TcpIp\Parameters 3. We install value "HostName" 4. We search subKey = SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName 5. We install value "ComputerName" 6. We are overloaded. Attention: Wrong correction of these values регистри can cause The big problems. To use at own risk. |
2000 (c) DM