Lines Matching refs:pCurrentConfig

75     TcpipSettings *pCurrentConfig;  member
387 if (pContext->pCurrentConfig->pFilter) in TcpipFilterSettingsDlg()
389 …InitFilterListBox(pContext->pCurrentConfig->pFilter->szTCPAllowedPorts, hwndDlg, GetDlgItem(hwndDl… in TcpipFilterSettingsDlg()
390 …InitFilterListBox(pContext->pCurrentConfig->pFilter->szUDPAllowedPorts, hwndDlg, GetDlgItem(hwndDl… in TcpipFilterSettingsDlg()
391 …InitFilterListBox(pContext->pCurrentConfig->pFilter->szRawIPAllowedProtocols, hwndDlg, GetDlgItem(… in TcpipFilterSettingsDlg()
392 if (pContext->pCurrentConfig->pFilter->EnableSecurityFilters) in TcpipFilterSettingsDlg()
470 if (pContext->pCurrentConfig->pFilter) in TcpipFilterSettingsDlg()
472 CoTaskMemFree(pContext->pCurrentConfig->pFilter->szTCPAllowedPorts); in TcpipFilterSettingsDlg()
473 CoTaskMemFree(pContext->pCurrentConfig->pFilter->szUDPAllowedPorts); in TcpipFilterSettingsDlg()
474 … CoTaskMemFree(pContext->pCurrentConfig->pFilter->szRawIPAllowedProtocols); in TcpipFilterSettingsDlg()
475 CoTaskMemFree(pContext->pCurrentConfig->pFilter); in TcpipFilterSettingsDlg()
477 pContext->pCurrentConfig->pFilter = pFilter; in TcpipFilterSettingsDlg()
682 if (This->pCurrentConfig->DhcpEnabled) in InitializeTcpipAdvancedIpDlg()
695 InsertIpAddressToListView(GetDlgItem(hwndDlg, IDC_IPLIST), This->pCurrentConfig->Ip, TRUE); in InitializeTcpipAdvancedIpDlg()
705 InsertIpAddressToListView(GetDlgItem(hwndDlg, IDC_GWLIST), This->pCurrentConfig->Gw, FALSE); in InitializeTcpipAdvancedIpDlg()
1245 This->pCurrentConfig->Ip = pCur; in StoreIPSettings()
1247 This->pCurrentConfig->Gw = pCur; in StoreIPSettings()
1299 (!This->pCurrentConfig->DhcpEnabled); in TcpipAdvancedIpDlg()
1315 …if (!This->pCurrentConfig->DhcpEnabled && ListView_GetItemCount(GetDlgItem(hwndDlg, IDC_IPLIST)) =… in TcpipAdvancedIpDlg()
1325 FreeIPAddr(This->pCurrentConfig->Gw); in TcpipAdvancedIpDlg()
1326 This->pCurrentConfig->Gw = NULL; in TcpipAdvancedIpDlg()
1327 FreeIPAddr(This->pCurrentConfig->Ip); in TcpipAdvancedIpDlg()
1328 This->pCurrentConfig->Ip = NULL; in TcpipAdvancedIpDlg()
1575 pAddr = This->pCurrentConfig->Ns; in InitializeTcpipAdvancedDNSDlg()
1587 if (!This->pCurrentConfig->pDNS) in InitializeTcpipAdvancedDNSDlg()
1590 if (This->pCurrentConfig->pDNS->RegisterAdapterName) in InitializeTcpipAdvancedDNSDlg()
1595 if (This->pCurrentConfig->pDNS->RegistrationEnabled) in InitializeTcpipAdvancedDNSDlg()
1598 if (This->pCurrentConfig->pDNS->szDomain[0]) in InitializeTcpipAdvancedDNSDlg()
1601 if (This->pCurrentConfig->pDNS->UseDomainNameDevolution) in InitializeTcpipAdvancedDNSDlg()
1604 …if (!This->pCurrentConfig->pDNS->szSearchList || (wcslen(This->pCurrentConfig->pDNS->szSearchList)… in InitializeTcpipAdvancedDNSDlg()
1612 pList = This->pCurrentConfig->pDNS->szSearchList; in InitializeTcpipAdvancedDNSDlg()
1771 FreeIPAddr(This->pCurrentConfig->Ns); in StoreDNSSettings()
1772 This->pCurrentConfig->Ns = NULL; in StoreDNSSettings()
1793 This->pCurrentConfig->Ns = pCur; in StoreDNSSettings()
1800 This->pCurrentConfig->AutoconfigActive = FALSE; in StoreDNSSettings()
1869 if (!This->pCurrentConfig->pDNS) in TcpipAdvancedDnsDlg()
1875 CoTaskMemFree(This->pCurrentConfig->pDNS->szSearchList); in TcpipAdvancedDnsDlg()
1876 This->pCurrentConfig->pDNS->szSearchList = NULL; in TcpipAdvancedDnsDlg()
1878 This->pCurrentConfig->pDNS->UseDomainNameDevolution = TRUE; in TcpipAdvancedDnsDlg()
1880 This->pCurrentConfig->pDNS->UseDomainNameDevolution = FALSE; in TcpipAdvancedDnsDlg()
1884 CoTaskMemFree(This->pCurrentConfig->pDNS->szSearchList); in TcpipAdvancedDnsDlg()
1885 This->pCurrentConfig->pDNS->szSearchList = NULL; in TcpipAdvancedDnsDlg()
1886 This->pCurrentConfig->pDNS->UseDomainNameDevolution = FALSE; in TcpipAdvancedDnsDlg()
1887 …This->pCurrentConfig->pDNS->szSearchList = GetListViewEntries(GetDlgItem(hwndDlg, IDC_DNSSUFFIXLIS… in TcpipAdvancedDnsDlg()
1892 This->pCurrentConfig->pDNS->RegisterAdapterName = TRUE; in TcpipAdvancedDnsDlg()
1894 This->pCurrentConfig->pDNS->RegistrationEnabled = TRUE; in TcpipAdvancedDnsDlg()
1896 This->pCurrentConfig->pDNS->RegistrationEnabled = FALSE; in TcpipAdvancedDnsDlg()
1900 This->pCurrentConfig->pDNS->RegisterAdapterName = FALSE; in TcpipAdvancedDnsDlg()
1901 This->pCurrentConfig->pDNS->RegistrationEnabled = FALSE; in TcpipAdvancedDnsDlg()
2134 InitializeTcpipBasicDlgCtrls(hwndDlg, This->pCurrentConfig); in LaunchAdvancedTcpipSettings()
2235 if (This->pCurrentConfig) in TcpipAltConfDlg()
2236 InitializeTcpipAltDlgCtrls(hwndDlg, This->pCurrentConfig); in TcpipAltConfDlg()
2297 This->pCurrentConfig->DhcpEnabled = FALSE; in StoreTcpipBasicSettings()
2307 if (!This->pCurrentConfig->Ip) in StoreTcpipBasicSettings()
2309 This->pCurrentConfig->Ip = (IP_ADDR*)CoTaskMemAlloc(sizeof(IP_ADDR)); in StoreTcpipBasicSettings()
2310 if (!This->pCurrentConfig->Ip) in StoreTcpipBasicSettings()
2312 ZeroMemory(This->pCurrentConfig->Ip, sizeof(IP_ADDR)); in StoreTcpipBasicSettings()
2314 This->pCurrentConfig->Ip->IpAddress = dwIpAddr; in StoreTcpipBasicSettings()
2338 This->pCurrentConfig->Ip->u.Subnetmask = dwIpAddr; in StoreTcpipBasicSettings()
2342 This->pCurrentConfig->DhcpEnabled = TRUE; in StoreTcpipBasicSettings()
2347 if (!This->pCurrentConfig->Gw) in StoreTcpipBasicSettings()
2349 This->pCurrentConfig->Gw = (IP_ADDR*)CoTaskMemAlloc(sizeof(IP_ADDR)); in StoreTcpipBasicSettings()
2350 if (!This->pCurrentConfig->Gw) in StoreTcpipBasicSettings()
2352 ZeroMemory(This->pCurrentConfig->Gw, sizeof(IP_ADDR)); in StoreTcpipBasicSettings()
2355 This->pCurrentConfig->Gw->IpAddress = dwIpAddr; in StoreTcpipBasicSettings()
2359 if (This->pCurrentConfig->Gw) in StoreTcpipBasicSettings()
2361 IP_ADDR * pNextGw = This->pCurrentConfig->Gw->Next; in StoreTcpipBasicSettings()
2362 CoTaskMemFree(This->pCurrentConfig->Gw); in StoreTcpipBasicSettings()
2363 This->pCurrentConfig->Gw = pNextGw; in StoreTcpipBasicSettings()
2370 This->pCurrentConfig->AutoconfigActive = FALSE; in StoreTcpipBasicSettings()
2373 if (!This->pCurrentConfig->Ns) in StoreTcpipBasicSettings()
2375 This->pCurrentConfig->Ns = (IP_ADDR*)CoTaskMemAlloc(sizeof(IP_ADDR)); in StoreTcpipBasicSettings()
2376 if (!This->pCurrentConfig->Ns) in StoreTcpipBasicSettings()
2378 ZeroMemory(This->pCurrentConfig->Ns, sizeof(IP_ADDR)); in StoreTcpipBasicSettings()
2380 This->pCurrentConfig->Ns->IpAddress = dwIpAddr; in StoreTcpipBasicSettings()
2382 else if (This->pCurrentConfig->Ns) in StoreTcpipBasicSettings()
2384 IP_ADDR *pTemp = This->pCurrentConfig->Ns->Next; in StoreTcpipBasicSettings()
2386 CoTaskMemFree(This->pCurrentConfig->Ns); in StoreTcpipBasicSettings()
2387 This->pCurrentConfig->Ns = pTemp; in StoreTcpipBasicSettings()
2394 if (!This->pCurrentConfig->Ns || bSkip) in StoreTcpipBasicSettings()
2396 if (!This->pCurrentConfig->Ns) in StoreTcpipBasicSettings()
2398 This->pCurrentConfig->Ns = (IP_ADDR*)CoTaskMemAlloc(sizeof(IP_ADDR)); in StoreTcpipBasicSettings()
2399 if (!This->pCurrentConfig->Ns) in StoreTcpipBasicSettings()
2401 ZeroMemory(This->pCurrentConfig->Ns, sizeof(IP_ADDR)); in StoreTcpipBasicSettings()
2403 This->pCurrentConfig->Ns->IpAddress = dwIpAddr; in StoreTcpipBasicSettings()
2405 else if (!This->pCurrentConfig->Ns->Next) in StoreTcpipBasicSettings()
2407 This->pCurrentConfig->Ns->Next = (IP_ADDR*)CoTaskMemAlloc(sizeof(IP_ADDR)); in StoreTcpipBasicSettings()
2408 if (!This->pCurrentConfig->Ns->Next) in StoreTcpipBasicSettings()
2410 ZeroMemory(This->pCurrentConfig->Ns->Next, sizeof(IP_ADDR)); in StoreTcpipBasicSettings()
2411 This->pCurrentConfig->Ns->Next->IpAddress = dwIpAddr; in StoreTcpipBasicSettings()
2415 This->pCurrentConfig->Ns->Next->IpAddress = dwIpAddr; in StoreTcpipBasicSettings()
2420 if (This->pCurrentConfig->Ns && This->pCurrentConfig->Ns->Next) in StoreTcpipBasicSettings()
2422 if (This->pCurrentConfig->Ns->Next->Next) in StoreTcpipBasicSettings()
2424 IP_ADDR *pTemp = This->pCurrentConfig->Ns->Next->Next; in StoreTcpipBasicSettings()
2425 CoTaskMemFree(This->pCurrentConfig->Ns->Next); in StoreTcpipBasicSettings()
2426 This->pCurrentConfig->Ns->Next = pTemp; in StoreTcpipBasicSettings()
2430 CoTaskMemFree(This->pCurrentConfig->Ns->Next); in StoreTcpipBasicSettings()
2431 This->pCurrentConfig->Ns->Next = NULL; in StoreTcpipBasicSettings()
2438 This->pCurrentConfig->AutoconfigActive = TRUE; in StoreTcpipBasicSettings()
2611 if (This->pCurrentConfig) in TcpipBasicDlg()
2612 InitializeTcpipBasicDlgCtrls(hwndDlg, This->pCurrentConfig); in TcpipBasicDlg()
2819 …This->pCurrentConfig->pDNS = (TcpipAdvancedDNSDlgSettings*) CoTaskMemAlloc(sizeof(TcpipAdvancedDNS… in LoadDNSSettings()
2820 if (!This->pCurrentConfig->pDNS) in LoadDNSSettings()
2823 ZeroMemory(This->pCurrentConfig->pDNS, sizeof(TcpipAdvancedDNSDlgSettings)); in LoadDNSSettings()
2833 …RegQueryValueExW(hKey, L"RegisterAdapterName", NULL, NULL, (LPBYTE)&This->pCurrentConfig->pDNS->Re… in LoadDNSSettings()
2836 …RegQueryValueExW(hKey, L"RegistrationEnabled", NULL, NULL, (LPBYTE)&This->pCurrentConfig->pDNS->Re… in LoadDNSSettings()
2838 dwSize = sizeof(This->pCurrentConfig->pDNS->szDomain); in LoadDNSSettings()
2839 …RegQueryValueExW(hKey, L"Domain", NULL, NULL, (LPBYTE)This->pCurrentConfig->pDNS->szDomain, &dwSiz… in LoadDNSSettings()
2847 …alueExW(hKey, L"UseDomainNameDevolution", NULL, NULL, (LPBYTE)&This->pCurrentConfig->pDNS->UseDoma… in LoadDNSSettings()
2852 This->pCurrentConfig->pDNS->szSearchList = (LPWSTR)CoTaskMemAlloc(dwSize); in LoadDNSSettings()
2853 if (This->pCurrentConfig->pDNS->szSearchList) in LoadDNSSettings()
2855 …if (RegQueryValueExW(hKey, L"SearchList", NULL, NULL, (LPBYTE)This->pCurrentConfig->pDNS->szSearch… in LoadDNSSettings()
2857 CoTaskMemFree(This->pCurrentConfig->pDNS->szSearchList); in LoadDNSSettings()
2858 This->pCurrentConfig->pDNS->szSearchList = NULL; in LoadDNSSettings()
2904 This->pCurrentConfig->pFilter = pFilter; in LoadFilterSettings()
2951 if (This->pCurrentConfig) in Initialize()
3012 This->pCurrentConfig = pCurSettings; in Initialize()
3082 if (This->pCurrentConfig->DhcpEnabled) in INetCfgComponentPropertyUi_fnMergePropPages()
3294 TcpipSettings * pCurrentConfig, *pOldConfig; in INetCfgComponentControl_fnApplyRegistryChanges() local
3300 pCurrentConfig = This->pCurrentConfig; in INetCfgComponentControl_fnApplyRegistryChanges()
3301 This->pCurrentConfig = NULL; in INetCfgComponentControl_fnApplyRegistryChanges()
3305 This->pCurrentConfig = pCurrentConfig; in INetCfgComponentControl_fnApplyRegistryChanges()
3308 pOldConfig = This->pCurrentConfig; in INetCfgComponentControl_fnApplyRegistryChanges()
3309 This->pCurrentConfig = pCurrentConfig; in INetCfgComponentControl_fnApplyRegistryChanges()
3316 if (pCurrentConfig->pDNS) in INetCfgComponentControl_fnApplyRegistryChanges()
3318 …RegSetValueExW(hKey, L"UseDomainNameDevolution", 0, REG_DWORD, (LPBYTE)&pCurrentConfig->pDNS->UseD… in INetCfgComponentControl_fnApplyRegistryChanges()
3319 … RegSetValueExW(hKey, L"SearchList", 0, REG_SZ, (LPBYTE)pCurrentConfig->pDNS->szSearchList, in INetCfgComponentControl_fnApplyRegistryChanges()
3320 (wcslen(pCurrentConfig->pDNS->szSearchList)+1) * sizeof(WCHAR)); in INetCfgComponentControl_fnApplyRegistryChanges()
3322 if (pCurrentConfig->pFilter) in INetCfgComponentControl_fnApplyRegistryChanges()
3325 (LPBYTE)&pCurrentConfig->pFilter->EnableSecurityFilters, sizeof(DWORD)); in INetCfgComponentControl_fnApplyRegistryChanges()
3338 if (pCurrentConfig->pDNS) in INetCfgComponentControl_fnApplyRegistryChanges()
3340 …tValueExW(hKey, L"RegisterAdapterName", 0, REG_DWORD, (LPBYTE)&This->pCurrentConfig->pDNS->Registe… in INetCfgComponentControl_fnApplyRegistryChanges()
3341 …tValueExW(hKey, L"RegistrationEnabled", 0, REG_DWORD, (LPBYTE)&This->pCurrentConfig->pDNS->Registr… in INetCfgComponentControl_fnApplyRegistryChanges()
3342 RegSetValueExW(hKey, L"Domain", 0, REG_SZ, (LPBYTE)This->pCurrentConfig->pDNS->szDomain, in INetCfgComponentControl_fnApplyRegistryChanges()
3343 (wcslen(This->pCurrentConfig->pDNS->szDomain)+1) * sizeof(WCHAR)); in INetCfgComponentControl_fnApplyRegistryChanges()
3346 if (pCurrentConfig->pFilter) in INetCfgComponentControl_fnApplyRegistryChanges()
3348 if (pCurrentConfig->pFilter->szTCPAllowedPorts) in INetCfgComponentControl_fnApplyRegistryChanges()
3351 (LPBYTE)pCurrentConfig->pFilter->szTCPAllowedPorts, in INetCfgComponentControl_fnApplyRegistryChanges()
3352 pCurrentConfig->pFilter->TCPSize); in INetCfgComponentControl_fnApplyRegistryChanges()
3354 if (pCurrentConfig->pFilter->szUDPAllowedPorts) in INetCfgComponentControl_fnApplyRegistryChanges()
3357 (LPBYTE)pCurrentConfig->pFilter->szUDPAllowedPorts, in INetCfgComponentControl_fnApplyRegistryChanges()
3358 pCurrentConfig->pFilter->UDPSize); in INetCfgComponentControl_fnApplyRegistryChanges()
3360 if (pCurrentConfig->pFilter->szRawIPAllowedProtocols) in INetCfgComponentControl_fnApplyRegistryChanges()
3363 (LPBYTE)pCurrentConfig->pFilter->szRawIPAllowedProtocols, in INetCfgComponentControl_fnApplyRegistryChanges()
3364 pCurrentConfig->pFilter->IPSize); in INetCfgComponentControl_fnApplyRegistryChanges()
3368 …RegSetValueExW(hKey, L"EnableDHCP", 0, REG_DWORD, (LPBYTE)&pCurrentConfig->DhcpEnabled, sizeof(DWO… in INetCfgComponentControl_fnApplyRegistryChanges()
3369 if (pCurrentConfig->DhcpEnabled) in INetCfgComponentControl_fnApplyRegistryChanges()
3408 DhcpStaticRefreshParams(pCurrentConfig->Index, in INetCfgComponentControl_fnApplyRegistryChanges()
3409 htonl(pCurrentConfig->Ip->IpAddress), in INetCfgComponentControl_fnApplyRegistryChanges()
3410 htonl(pCurrentConfig->Ip->u.Subnetmask)); in INetCfgComponentControl_fnApplyRegistryChanges()
3421 AddIPAddress(htonl(pCurrentConfig->Ip->IpAddress), in INetCfgComponentControl_fnApplyRegistryChanges()
3422 htonl(pCurrentConfig->Ip->u.Subnetmask), in INetCfgComponentControl_fnApplyRegistryChanges()
3423 pCurrentConfig->Index, in INetCfgComponentControl_fnApplyRegistryChanges()
3424 &pCurrentConfig->Ip->NTEContext, in INetCfgComponentControl_fnApplyRegistryChanges()
3428 pStr = CreateMultiSzString(pCurrentConfig->Ip, IPADDR, &dwSize, FALSE); in INetCfgComponentControl_fnApplyRegistryChanges()
3435 pStr = CreateMultiSzString(pCurrentConfig->Ip, SUBMASK, &dwSize, FALSE); in INetCfgComponentControl_fnApplyRegistryChanges()
3466 if (pCurrentConfig->Gw) in INetCfgComponentControl_fnApplyRegistryChanges()
3473 RouterMib.dwForwardNextHop = htonl(pCurrentConfig->Gw->IpAddress); in INetCfgComponentControl_fnApplyRegistryChanges()
3480 pStr = CreateMultiSzString(pCurrentConfig->Gw, IPADDR, &dwSize, FALSE); in INetCfgComponentControl_fnApplyRegistryChanges()
3487 pStr = CreateMultiSzString(pCurrentConfig->Gw, METRIC, &dwSize, FALSE); in INetCfgComponentControl_fnApplyRegistryChanges()
3501 if (!pCurrentConfig->Ns || pCurrentConfig->AutoconfigActive) in INetCfgComponentControl_fnApplyRegistryChanges()
3507 pStr = CreateMultiSzString(pCurrentConfig->Ns, IPADDR, &dwSize, TRUE); in INetCfgComponentControl_fnApplyRegistryChanges()
3570 This->pCurrentConfig = NULL; in TcpipConfigNotify_Constructor()