Author: janderwald
Date: Sat Apr 5 06:00:29 2008
New Revision: 32869
URL:
http://svn.reactos.org/svn/reactos?rev=32869&view=rev
Log:
- change statistics to display number of bytes received / send instead of number of
packets
- dont show a decimal seperator
Modified:
trunk/reactos/dll/cpl/ncpa/lang/bg-BG.rc
trunk/reactos/dll/cpl/ncpa/lang/cs-CZ.rc
trunk/reactos/dll/cpl/ncpa/lang/da-DK.rc
trunk/reactos/dll/cpl/ncpa/lang/de-DE.rc
trunk/reactos/dll/cpl/ncpa/lang/el-GR.rc
trunk/reactos/dll/cpl/ncpa/lang/en-US.rc
trunk/reactos/dll/cpl/ncpa/lang/fr-FR.rc
trunk/reactos/dll/cpl/ncpa/lang/hu-HU.rc
trunk/reactos/dll/cpl/ncpa/lang/id-ID.rc
trunk/reactos/dll/cpl/ncpa/lang/it-IT.rc
trunk/reactos/dll/cpl/ncpa/lang/ja-JP.rc
trunk/reactos/dll/cpl/ncpa/lang/nb-NO.rc
trunk/reactos/dll/cpl/ncpa/lang/nl-NL.rc
trunk/reactos/dll/cpl/ncpa/lang/pl-PL.rc
trunk/reactos/dll/cpl/ncpa/lang/ru-RU.rc
trunk/reactos/dll/cpl/ncpa/lang/sv-SE.rc
trunk/reactos/dll/cpl/ncpa/lang/uk-UA.rc
trunk/reactos/dll/cpl/ncpa/ncpa.c
trunk/reactos/dll/cpl/ncpa/tcpip_properties.c
Modified: trunk/reactos/dll/cpl/ncpa/lang/bg-BG.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/ncpa/lang/bg-BG.rc…
==============================================================================
--- trunk/reactos/dll/cpl/ncpa/lang/bg-BG.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/ncpa/lang/bg-BG.rc [iso-8859-1] Sat Apr 5 06:00:29 2008
@@ -46,7 +46,7 @@
ICON IDI_NETSTAT, -1, 110, 85, 18, 20
ICON IDI_HORIZONTAL, -1, 130, 85, 18, 20
LTEXT "Ïîëó÷åíî", -1, 149, 90, 37, 8
- LTEXT "Ïàêåòè:", -1, 17, 115, 32, 8
+ LTEXT "Bytes:", -1, 17, 115, 32, 8
RTEXT "000.000.000", IDC_SEND, 63, 115, 44, 8
ICON IDI_VERTICAL, -1, 110, 108, 18, 20
RTEXT "000.000.000", IDC_RECEIVED, 139, 115, 44, 8
Modified: trunk/reactos/dll/cpl/ncpa/lang/cs-CZ.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/ncpa/lang/cs-CZ.rc…
==============================================================================
--- trunk/reactos/dll/cpl/ncpa/lang/cs-CZ.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/ncpa/lang/cs-CZ.rc [iso-8859-1] Sat Apr 5 06:00:29 2008
@@ -46,7 +46,7 @@
ICON IDI_NETSTAT, -1, 110, 85, 18, 20
ICON IDI_HORIZONTAL, -1, 130, 85, 18, 20
LTEXT "Pøijato", -1, 149, 90, 37, 8
- LTEXT "Paketù:", -1, 17, 115, 32, 8
+ LTEXT "Bytes:", -1, 17, 115, 32, 8
RTEXT "000.000.000", IDC_SEND, 63, 115, 44, 8
ICON IDI_VERTICAL, -1, 110, 108, 18, 20
RTEXT "000.000.000", IDC_RECEIVED, 139, 115, 44, 8
Modified: trunk/reactos/dll/cpl/ncpa/lang/da-DK.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/ncpa/lang/da-DK.rc…
==============================================================================
--- trunk/reactos/dll/cpl/ncpa/lang/da-DK.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/ncpa/lang/da-DK.rc [iso-8859-1] Sat Apr 5 06:00:29 2008
@@ -46,7 +46,7 @@
ICON IDI_NETSTAT, -1, 110, 85, 18, 20
ICON IDI_HORIZONTAL, -1, 130, 85, 18, 20
LTEXT " Modtaget", -1, 149, 90, 37, 8
- LTEXT "Netværks pakker:", -1, 73, 115, 44, 8
+ LTEXT "Bytes:", -1, 73, 115, 44, 8
RTEXT "000.000.000", IDC_SEND, 63, 115, 44, 8
ICON IDI_VERTICAL, -1, 117, 108, 21, 20
RTEXT "000.000.000", IDC_RECEIVED, 134, 115, 44, 8
Modified: trunk/reactos/dll/cpl/ncpa/lang/de-DE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/ncpa/lang/de-DE.rc…
==============================================================================
--- trunk/reactos/dll/cpl/ncpa/lang/de-DE.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/ncpa/lang/de-DE.rc [iso-8859-1] Sat Apr 5 06:00:29 2008
@@ -46,7 +46,7 @@
ICON IDI_NETSTAT, -1, 110, 85, 18, 20
ICON IDI_HORIZONTAL, -1, 130, 85, 18, 20
LTEXT "Empfangen", -1, 149, 90, 37, 8
- LTEXT "Pakete:", -1, 17, 115, 32, 8
+ LTEXT "Bytes:", -1, 17, 115, 32, 8
RTEXT "000.000.000", IDC_SEND, 63, 115, 44, 8
ICON IDI_VERTICAL, -1, 110, 108, 18, 20
RTEXT "000.000.000", IDC_RECEIVED, 139, 115, 44, 8
Modified: trunk/reactos/dll/cpl/ncpa/lang/el-GR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/ncpa/lang/el-GR.rc…
==============================================================================
--- trunk/reactos/dll/cpl/ncpa/lang/el-GR.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/ncpa/lang/el-GR.rc [iso-8859-1] Sat Apr 5 06:00:29 2008
@@ -46,7 +46,7 @@
ICON IDI_NETSTAT, -1, 110, 85, 18, 20
ICON IDI_HORIZONTAL, -1, 130, 85, 18, 20
LTEXT "ÅëÞöèçóáí", -1, 149, 90, 37, 8
- LTEXT "ÐáêÝôá:", -1, 17, 115, 32, 8
+ LTEXT "Bytes:", -1, 17, 115, 32, 8
RTEXT "000.000.000", IDC_SEND, 63, 115, 44, 8
ICON IDI_VERTICAL, -1, 110, 108, 18, 20
RTEXT "000.000.000", IDC_RECEIVED, 139, 115, 44, 8
Modified: trunk/reactos/dll/cpl/ncpa/lang/en-US.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/ncpa/lang/en-US.rc…
==============================================================================
--- trunk/reactos/dll/cpl/ncpa/lang/en-US.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/ncpa/lang/en-US.rc [iso-8859-1] Sat Apr 5 06:00:29 2008
@@ -46,7 +46,7 @@
ICON IDI_NETSTAT, -1, 110, 85, 18, 20
ICON IDI_HORIZONTAL, -1, 130, 85, 18, 20
LTEXT "Received", -1, 149, 90, 37, 8
- LTEXT "Packets:", -1, 17, 115, 32, 8
+ LTEXT "Bytes:", -1, 17, 115, 32, 8
RTEXT "000.000.000", IDC_SEND, 63, 115, 44, 8
ICON IDI_VERTICAL, -1, 110, 108, 18, 20
RTEXT "000.000.000", IDC_RECEIVED, 139, 115, 44, 8
Modified: trunk/reactos/dll/cpl/ncpa/lang/fr-FR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/ncpa/lang/fr-FR.rc…
==============================================================================
--- trunk/reactos/dll/cpl/ncpa/lang/fr-FR.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/ncpa/lang/fr-FR.rc [iso-8859-1] Sat Apr 5 06:00:29 2008
@@ -46,7 +46,7 @@
ICON IDI_NETSTAT, -1, 110, 85, 18, 20
ICON IDI_HORIZONTAL, -1, 130, 85, 18, 20
LTEXT "Reçus", -1, 149, 90, 37, 8
- LTEXT "Paquets :", -1, 17, 115, 32, 8
+ LTEXT "Bytes:", -1, 17, 115, 32, 8
RTEXT "000.000.000", IDC_SEND, 63, 115, 44, 8
ICON IDI_VERTICAL, -1, 110, 108, 18, 20
RTEXT "000.000.000", IDC_RECEIVED, 139, 115, 44, 8
Modified: trunk/reactos/dll/cpl/ncpa/lang/hu-HU.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/ncpa/lang/hu-HU.rc…
==============================================================================
--- trunk/reactos/dll/cpl/ncpa/lang/hu-HU.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/ncpa/lang/hu-HU.rc [iso-8859-1] Sat Apr 5 06:00:29 2008
@@ -47,7 +47,7 @@
ICON IDI_NETSTAT, -1, 110, 85, 18, 20
ICON IDI_HORIZONTAL, -1, 130, 85, 18, 20
LTEXT "Beérkezett", -1, 149, 90, 37, 8
- LTEXT "Csomagok:", -1, 17, 115, 32, 8
+ LTEXT "Bytes:", -1, 17, 115, 32, 8
RTEXT "000.000.000", IDC_SEND, 63, 115, 44, 8
ICON IDI_VERTICAL, -1, 110, 108, 18, 20
RTEXT "000.000.000", IDC_RECEIVED, 139, 115, 44, 8
Modified: trunk/reactos/dll/cpl/ncpa/lang/id-ID.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/ncpa/lang/id-ID.rc…
==============================================================================
--- trunk/reactos/dll/cpl/ncpa/lang/id-ID.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/ncpa/lang/id-ID.rc [iso-8859-1] Sat Apr 5 06:00:29 2008
@@ -46,7 +46,7 @@
ICON IDI_NETSTAT, -1, 110, 85, 18, 20
ICON IDI_HORIZONTAL, -1, 130, 85, 18, 20
LTEXT "Diterima", -1, 149, 90, 37, 8
- LTEXT "Paket:", -1, 17, 115, 32, 8
+ LTEXT "Bytes:", -1, 17, 115, 32, 8
RTEXT "000.000.000", IDC_SEND, 63, 115, 44, 8
ICON IDI_VERTICAL, -1, 110, 108, 18, 20
RTEXT "000.000.000", IDC_RECEIVED, 139, 115, 44, 8
Modified: trunk/reactos/dll/cpl/ncpa/lang/it-IT.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/ncpa/lang/it-IT.rc…
==============================================================================
--- trunk/reactos/dll/cpl/ncpa/lang/it-IT.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/ncpa/lang/it-IT.rc [iso-8859-1] Sat Apr 5 06:00:29 2008
@@ -46,7 +46,7 @@
ICON IDI_NETSTAT, -1, 110, 85, 18, 20
ICON IDI_HORIZONTAL, -1, 130, 85, 18, 20
LTEXT "Ricevuti", -1, 149, 90, 37, 8
- LTEXT "Pacchetti:", -1, 17, 115, 32, 8
+ LTEXT "Bytes:", -1, 17, 115, 32, 8
RTEXT "000.000.000", IDC_SEND, 63, 115, 44, 8
ICON IDI_VERTICAL, -1, 110, 108, 18, 20
RTEXT "000.000.000", IDC_RECEIVED, 139, 115, 44, 8
Modified: trunk/reactos/dll/cpl/ncpa/lang/ja-JP.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/ncpa/lang/ja-JP.rc…
==============================================================================
--- trunk/reactos/dll/cpl/ncpa/lang/ja-JP.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/ncpa/lang/ja-JP.rc [iso-8859-1] Sat Apr 5 06:00:29 2008
@@ -46,7 +46,7 @@
ICON IDI_NETSTAT, -1, 110, 85, 18, 20
ICON IDI_HORIZONTAL, -1, 130, 85, 18, 20
LTEXT "óM", -1, 149, 90, 37, 8
- LTEXT "pPbg:", -1, 17, 115, 32, 8
+ LTEXT "Bytes:", -1, 17, 115, 32, 8
RTEXT "000.000.000", IDC_SEND, 63, 115, 44, 8
ICON IDI_VERTICAL, -1, 110, 108, 18, 20
RTEXT "000.000.000", IDC_RECEIVED, 139, 115, 44, 8
Modified: trunk/reactos/dll/cpl/ncpa/lang/nb-NO.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/ncpa/lang/nb-NO.rc…
==============================================================================
--- trunk/reactos/dll/cpl/ncpa/lang/nb-NO.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/ncpa/lang/nb-NO.rc [iso-8859-1] Sat Apr 5 06:00:29 2008
@@ -46,7 +46,7 @@
ICON IDI_NETSTAT, -1, 110, 85, 18, 20
ICON IDI_HORIZONTAL, -1, 130, 85, 18, 20
LTEXT "Received", -1, 149, 90, 37, 8
- LTEXT "Packets:", -1, 17, 115, 32, 8
+ LTEXT "Bytes:", -1, 17, 115, 32, 8
RTEXT "000.000.000", IDC_SEND, 63, 115, 44, 8
ICON IDI_VERTICAL, -1, 110, 108, 18, 20
RTEXT "000.000.000", IDC_RECEIVED, 139, 115, 44, 8
Modified: trunk/reactos/dll/cpl/ncpa/lang/nl-NL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/ncpa/lang/nl-NL.rc…
==============================================================================
--- trunk/reactos/dll/cpl/ncpa/lang/nl-NL.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/ncpa/lang/nl-NL.rc [iso-8859-1] Sat Apr 5 06:00:29 2008
@@ -46,7 +46,7 @@
ICON IDI_NETSTAT, -1, 110, 85, 18, 20
ICON IDI_HORIZONTAL, -1, 130, 85, 18, 20
LTEXT "Ontvangen", -1, 149, 90, 37, 8
- LTEXT "Pakketten:", -1, 17, 115, 32, 8
+ LTEXT "Bytes:", -1, 17, 115, 32, 8
RTEXT "000.000.000", IDC_SEND, 63, 115, 44, 8
ICON IDI_VERTICAL, -1, 110, 108, 18, 20
RTEXT "000.000.000", IDC_RECEIVED, 139, 115, 44, 8
Modified: trunk/reactos/dll/cpl/ncpa/lang/pl-PL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/ncpa/lang/pl-PL.rc…
==============================================================================
--- trunk/reactos/dll/cpl/ncpa/lang/pl-PL.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/ncpa/lang/pl-PL.rc [iso-8859-1] Sat Apr 5 06:00:29 2008
@@ -55,7 +55,7 @@
ICON IDI_NETSTAT, -1, 110, 85, 18, 20
ICON IDI_HORIZONTAL, -1, 130, 85, 18, 20
LTEXT "Odebrano", -1, 149, 90, 37, 8
- LTEXT "Pakietów:", -1, 17, 115, 32, 8
+ LTEXT "Bytes:", -1, 17, 115, 32, 8
RTEXT "000.000.000", IDC_SEND, 63, 115, 44, 8
ICON IDI_VERTICAL, -1, 110, 108, 18, 20
RTEXT "000.000.000", IDC_RECEIVED, 139, 115, 44, 8
Modified: trunk/reactos/dll/cpl/ncpa/lang/ru-RU.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/ncpa/lang/ru-RU.rc…
==============================================================================
--- trunk/reactos/dll/cpl/ncpa/lang/ru-RU.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/ncpa/lang/ru-RU.rc [iso-8859-1] Sat Apr 5 06:00:29 2008
@@ -46,7 +46,7 @@
ICON IDI_NETSTAT, -1, 110, 85, 18, 20
ICON IDI_HORIZONTAL, -1, 130, 85, 18, 20
LTEXT "Ïðèíÿòî", -1, 149, 90, 37, 8
- LTEXT "Ïàêåòîâ:", -1, 17, 115, 32, 8
+ LTEXT "Bytes:", -1, 17, 115, 32, 8
RTEXT "000.000.000", IDC_SEND, 63, 115, 44, 8
ICON IDI_VERTICAL, -1, 110, 108, 18, 20
RTEXT "000.000.000", IDC_RECEIVED, 139, 115, 44, 8
Modified: trunk/reactos/dll/cpl/ncpa/lang/sv-SE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/ncpa/lang/sv-SE.rc…
==============================================================================
--- trunk/reactos/dll/cpl/ncpa/lang/sv-SE.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/ncpa/lang/sv-SE.rc [iso-8859-1] Sat Apr 5 06:00:29 2008
@@ -48,7 +48,7 @@
ICON IDI_NETSTAT, -1, 110, 85, 18, 20
ICON IDI_HORIZONTAL, -1, 130, 85, 18, 20
LTEXT "Mottaget", -1, 149, 90, 37, 8
- LTEXT "Paket:", -1, 17, 115, 32, 8
+ LTEXT "Bytes:", -1, 17, 115, 32, 8
RTEXT "000.000.000", IDC_SEND, 63, 115, 44, 8
ICON IDI_VERTICAL, -1, 110, 108, 18, 20
RTEXT "000.000.000", IDC_RECEIVED, 139, 115, 44, 8
Modified: trunk/reactos/dll/cpl/ncpa/lang/uk-UA.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/ncpa/lang/uk-UA.rc…
==============================================================================
--- trunk/reactos/dll/cpl/ncpa/lang/uk-UA.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/ncpa/lang/uk-UA.rc [iso-8859-1] Sat Apr 5 06:00:29 2008
@@ -54,7 +54,7 @@
ICON IDI_NETSTAT, -1, 110, 85, 18, 20
ICON IDI_HORIZONTAL, -1, 130, 85, 18, 20
LTEXT "Îòðèìàíî", -1, 149, 90, 37, 8
- LTEXT "Ïàêåò³â:", -1, 17, 115, 32, 8
+ LTEXT "Bytes:", -1, 17, 115, 32, 8
RTEXT "000.000.000", IDC_SEND, 63, 115, 44, 8
ICON IDI_VERTICAL, -1, 110, 108, 18, 20
RTEXT "000.000.000", IDC_RECEIVED, 139, 115, 44, 8
Modified: trunk/reactos/dll/cpl/ncpa/ncpa.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/ncpa/ncpa.c?rev=32…
==============================================================================
--- trunk/reactos/dll/cpl/ncpa/ncpa.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/ncpa/ncpa.c [iso-8859-1] Sat Apr 5 06:00:29 2008
@@ -534,8 +534,9 @@
DWORD Mbps = 0;
DWORD OperStatus = IF_OPER_STATUS_DISCONNECTED;
PMIB_IFROW pIfRow = NULL;
- TCHAR Buffer[256], LocBuffer[256];
+ TCHAR Buffer[256], LocBuffer[256], szDecimalSep[3];
SYSTEMTIME TimeConnected;
+ NUMBERFMT fmt;
memset(&TimeConnected, 0, sizeof(TimeConnected));
@@ -554,8 +555,8 @@
FILETIME SystemFileTime;
ULARGE_INTEGER LargeSystemTime;
- PktsOut = pIfRow->dwOutUcastPkts;
- PktsIn = pIfRow->dwInUcastPkts;
+ PktsOut = pIfRow->dwOutOctets;
+ PktsIn = pIfRow->dwInOctets;
Mbps = pIfRow->dwSpeed;
OperStatus = pIfRow->dwOperStatus;
@@ -575,12 +576,18 @@
}
}
+ memset(&fmt, 0x0, sizeof(fmt));
+ if (GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_STHOUSAND, szDecimalSep,
sizeof(szDecimalSep) / sizeof(szDecimalSep[0])))
+ fmt.lpThousandSep = szDecimalSep;
+ fmt.Grouping = 3;
+ fmt.lpDecimalSep = _T("");
+
_stprintf(Buffer, L"%u", PktsOut);
- GetNumberFormat(LOCALE_USER_DEFAULT, 0, Buffer, NULL, LocBuffer, sizeof(LocBuffer) /
sizeof(LocBuffer[0]));
+ GetNumberFormat(LOCALE_USER_DEFAULT, 0, Buffer, &fmt, LocBuffer, sizeof(LocBuffer)
/ sizeof(LocBuffer[0]));
SendDlgItemMessage(hwndDlg, IDC_SEND, WM_SETTEXT, 0, (LPARAM)LocBuffer);
_stprintf(Buffer, L"%u", PktsIn);
- GetNumberFormat(LOCALE_USER_DEFAULT, 0, Buffer, NULL, LocBuffer, sizeof(LocBuffer) /
sizeof(LocBuffer[0]));
+ GetNumberFormat(LOCALE_USER_DEFAULT, 0, Buffer, &fmt, LocBuffer, sizeof(LocBuffer)
/ sizeof(LocBuffer[0]));
SendDlgItemMessage(hwndDlg, IDC_RECEIVED, WM_SETTEXT, 0, (LPARAM)LocBuffer);
switch (OperStatus)
Modified: trunk/reactos/dll/cpl/ncpa/tcpip_properties.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/ncpa/tcpip_propert…
==============================================================================
--- trunk/reactos/dll/cpl/ncpa/tcpip_properties.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/ncpa/tcpip_properties.c [iso-8859-1] Sat Apr 5 06:00:29 2008
@@ -26,7 +26,7 @@
#include "resource.h"
#include "ncpa.h"
-
+#define NDEBUG
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(ncpa);
@@ -163,7 +163,7 @@
DlgData->DhcpEnabled = (BST_CHECKED ==
IsDlgButtonChecked(Dlg, IDC_USEDHCP));
if (! DlgData->DhcpEnabled) {
- DhcpReleaseIpAddressLease( DlgData->AdapterIndex );
+// DhcpReleaseIpAddressLease( DlgData->AdapterIndex );
if (4 != SendMessageW(GetDlgItem(Dlg, IDC_IPADDR), IPM_GETADDRESS,
0, (LPARAM) &IpAddress)) {
@@ -185,8 +185,8 @@
} else {
DlgData->Gateway = htonl(IpAddress);
}
- DhcpStaticRefreshParams
- ( DlgData->AdapterIndex, DlgData->IpAddress, DlgData->SubnetMask );
+// DhcpStaticRefreshParams
+// ( DlgData->AdapterIndex, DlgData->IpAddress, DlgData->SubnetMask );
RowToRem.dwForwardMask = 0;
RowToRem.dwForwardMetric1 = 1;
@@ -204,7 +204,7 @@
DlgData->IpAddress = INADDR_NONE;
DlgData->SubnetMask = INADDR_NONE;
DlgData->Gateway = INADDR_NONE;
- DhcpLeaseIpAddress( DlgData->AdapterIndex );
+// DhcpLeaseIpAddress( DlgData->AdapterIndex );
}
if (BST_CHECKED == IsDlgButtonChecked(Dlg, IDC_FIXEDDNS)) {