82 const INetCfgComponentControl *
lpVtbl;
155 szBuffer[(
sizeof(szBuffer)/
sizeof(
WCHAR))-1] =
L'\0';
195 szBuffer[(
sizeof(szBuffer)/
sizeof(
WCHAR))-1] =
L'\0';
199 if (pPort->MaxNum == 65536)
215 if (Num > pPort->MaxNum || Num == 0)
217 if (pPort->MaxNum == 65536)
227 szBuffer[(
sizeof(szBuffer)/
sizeof(
WCHAR))-1] =
L'\0';
236 li.pszText = szBuffer;
315 for(iIndex = 0; iIndex < iCount; iIndex++)
320 li.pszText = szBuffer;
321 li.cchTextMax =
sizeof(szBuffer) /
sizeof(
WCHAR);
366 Port.MaxNum = MaxItem;
367 Port.hDlgCtrl = hDlgCtrl;
490 if (pContext->pCurrentConfig->pFilter)
492 CoTaskMemFree(pContext->pCurrentConfig->pFilter->szTCPAllowedPorts);
493 CoTaskMemFree(pContext->pCurrentConfig->pFilter->szUDPAllowedPorts);
494 CoTaskMemFree(pContext->pCurrentConfig->pFilter->szRawIPAllowedProtocols);
497 pContext->pCurrentConfig->pFilter = pFilter;
569 szText[(
sizeof(szText)/
sizeof(
WCHAR))-1] =
L'\0';
576 szText[(
sizeof(szText)/
sizeof(
WCHAR))-1] =
L'\0';
632 lc.
fmt = LVCFMT_FIXED_WIDTH;
655 li.iItem = itemCount;
657 dwIpAddr =
pAddr->IpAddress;
661 li.pszText = szBuffer;
667 dwIpAddr =
pAddr->u.Subnetmask;
681 li.pszText = szBuffer;
702 if (
This->pCurrentConfig->DhcpEnabled)
708 li.pszText = szBuffer;
731 if (
This->pCurrentConfig->Metric)
769 if (pGwSettings->
bAdd)
773 szBuffer[(
sizeof(szBuffer)/
sizeof(
WCHAR))-1] =
L'\0';
783 szBuffer[(
sizeof(szBuffer)/
sizeof(
WCHAR))-1] =
L'\0';
846 if (!pGwSettings->
bAdd)
881 li.pszText = pGwSettings->
szIP;
886 li.pszText = szBuffer;
930 if (pIpSettings->
bAdd)
934 szBuffer[(
sizeof(szBuffer)/
sizeof(
WCHAR))-1] =
L'\0';
943 szBuffer[(
sizeof(szBuffer)/
sizeof(
WCHAR))-1] =
L'\0';
987 else if (!pIpSettings->
bAdd)
1027 WCHAR szBuffer[100];
1035 if (!pSettings->
bAdd)
1040 szBuffer[(
sizeof(szBuffer)/
sizeof(
WCHAR))-1] =
L'\0';
1050 szBuffer[(
sizeof(szBuffer)/
sizeof(
WCHAR))-1] =
L'\0';
1069 if (pSettings->Suffix)
1099 UINT iItemCount, iIndex;
1105 for (iIndex = 0; iIndex < iItemCount; iIndex++)
1129 li.pszText = pIpSettings->
szIP;
1174 while((pNext =
wcschr(pNext,
L'.')))
1178 dwIpAddr |= (Val <<
Index * 8);
1183 dwIpAddr |=
_wtoi(pLast);
1213 pNext =
pAddr->Next;
1226 li.pszText = szBuffer;
1228 li.iSubItem = SubIndex;
1251 for(iIndex = 0; iIndex < iCount; iIndex++)
1260 szBuffer[(
sizeof(szBuffer)/
sizeof(
WCHAR))-1] =
L'\0';
1265 szBuffer[(
sizeof(szBuffer)/
sizeof(
WCHAR))-1] =
L'\0';
1302 WCHAR szBuffer[200];
1329 (!
This->pCurrentConfig->DhcpEnabled);
1355 if ((
val < 1) || (
val > 9999))
1374 This->pCurrentConfig->Metric = 0;
1400 li.pszText = Ip.szIP;
1406 li.pszText = Ip.szMask;
1430 li.pszText = Ip.szIP;
1432 li.pszText = Ip.szMask;
1453 li.pszText =
Gw.szIP;
1461 li.pszText = szBuffer;
1468 szBuffer[(
sizeof(szBuffer)/
sizeof(
WCHAR))-1] =
L'\0';
1470 li.pszText = szBuffer;
1497 li.pszText =
Gw.szIP;
1503 li.pszText = szBuffer;
1510 szBuffer[(
sizeof(szBuffer)/
sizeof(
WCHAR))-1] =
L'\0';
1512 li.pszText = szBuffer;
1540 WCHAR szBuffer[100];
1549 if (!pSettings->
bAdd)
1553 szBuffer[(
sizeof(szBuffer)/
sizeof(
WCHAR))-1] =
L'\0';
1563 szBuffer[(
sizeof(szBuffer)/
sizeof(
WCHAR))-1] =
L'\0';
1581 if (pSettings->
bAdd)
1586 if (!pSettings->
bAdd)
1617 WCHAR szBuffer[200];
1626 dwIpAddr =
pAddr->IpAddress;
1635 if (!
This->pCurrentConfig->pDNS)
1638 if (
This->pCurrentConfig->pDNS->RegisterAdapterName)
1643 if (
This->pCurrentConfig->pDNS->RegistrationEnabled)
1646 if (
This->pCurrentConfig->pDNS->szDomain[0])
1649 if (
This->pCurrentConfig->pDNS->UseDomainNameDevolution)
1652 if (!
This->pCurrentConfig->pDNS->szSearchList || (
wcslen(
This->pCurrentConfig->pDNS->szSearchList) == 0))
1660 pList =
This->pCurrentConfig->pDNS->szSearchList;
1701 if (lResult < lCount -1)
1726 WCHAR szBuffer[100];
1754 if (lResult + 1 < lCount)
1768 LPWSTR pszSearchList, pItem;
1771 if (!iCount || iCount ==
LB_ERR)
1776 for (iIndex = 0; iIndex < iCount; iIndex++)
1789 pItem = pszSearchList;
1790 for (iIndex = 0; iIndex < iCount; iIndex++)
1800 if (iIndex != iCount -1)
1807 return pszSearchList;
1823 if (!iCount || iCount ==
LB_ERR)
1829 for(iIndex = 0; iIndex < iCount; iIndex++)
1865 WCHAR szSuffix[100];
1866 WCHAR szFormat[200];
1867 WCHAR szBuffer[300];
1893 szSuffix[(
sizeof(szSuffix)/
sizeof(
WCHAR))-1] =
L'\0';
1898 szFormat[(
sizeof(szFormat)/
sizeof(
WCHAR))-1] =
L'\0';
1899 swprintf(szBuffer, szFormat, szSuffix);
1901 szFormat[(
sizeof(szFormat)/
sizeof(
WCHAR))-1] =
L'\0';
1903 szFormat[0] =
L'\0';
1916 if (!
This->pCurrentConfig->pDNS)
1923 This->pCurrentConfig->pDNS->szSearchList =
NULL;
1925 This->pCurrentConfig->pDNS->UseDomainNameDevolution =
TRUE;
1927 This->pCurrentConfig->pDNS->UseDomainNameDevolution =
FALSE;
1932 This->pCurrentConfig->pDNS->szSearchList =
NULL;
1933 This->pCurrentConfig->pDNS->UseDomainNameDevolution =
FALSE;
1939 This->pCurrentConfig->pDNS->RegisterAdapterName =
TRUE;
1941 This->pCurrentConfig->pDNS->RegistrationEnabled =
TRUE;
1943 This->pCurrentConfig->pDNS->RegistrationEnabled =
FALSE;
1947 This->pCurrentConfig->pDNS->RegisterAdapterName =
FALSE;
1948 This->pCurrentConfig->pDNS->RegistrationEnabled =
FALSE;
2107 Suffix.
Suffix[lLength] =
L'\0';
2154 WCHAR szBuffer[100];
2162 szBuffer[(
sizeof(szBuffer)/
sizeof(
WCHAR))-1] =
L'\0';
2164 szBuffer[0] =
L'\0';
2170 pinfo.u3.
phpage = hppages;
2229 This->pCurrentConfig->AltConfig.IpAddress = dwAddr;
2232 This->pCurrentConfig->AltConfig.SubnetMask = dwAddr;
2235 This->pCurrentConfig->AltConfig.DefaultGateway = dwAddr;
2238 This->pCurrentConfig->AltConfig.DnsServer1 = dwAddr;
2241 This->pCurrentConfig->AltConfig.DnsServer2 = dwAddr;
2340 if (
This->pCurrentConfig)
2437 This->pCurrentConfig->DhcpEnabled =
FALSE;
2448 if (!
This->pCurrentConfig->Ip)
2451 if (!
This->pCurrentConfig->Ip)
2455 This->pCurrentConfig->Ip->IpAddress = dwIpAddr;
2479 This->pCurrentConfig->Ip->u.Subnetmask = dwIpAddr;
2483 if (!
This->pCurrentConfig->Gw)
2486 if (!
This->pCurrentConfig->Gw)
2492 This->pCurrentConfig->Gw->IpAddress = dwIpAddr;
2497 This->pCurrentConfig->DhcpEnabled =
TRUE;
2500 if (
This->pCurrentConfig->Ip)
2502 IP_ADDR * pNextIp =
This->pCurrentConfig->Ip->Next;
2504 This->pCurrentConfig->Ip = pNextIp;
2508 if (
This->pCurrentConfig->Gw)
2510 IP_ADDR * pNextGw =
This->pCurrentConfig->Gw->Next;
2512 This->pCurrentConfig->Gw = pNextGw;
2518 This->pCurrentConfig->DnsDhcpEnabled =
FALSE;
2523 if (!
This->pCurrentConfig->Ns)
2526 if (!
This->pCurrentConfig->Ns)
2530 This->pCurrentConfig->Ns->IpAddress = dwIpAddr;
2532 else if (
This->pCurrentConfig->Ns)
2537 This->pCurrentConfig->Ns = pTemp;
2543 if (!
This->pCurrentConfig->Ns || bSkip)
2545 if (!
This->pCurrentConfig->Ns)
2548 if (!
This->pCurrentConfig->Ns)
2552 This->pCurrentConfig->Ns->IpAddress = dwIpAddr;
2554 else if (!
This->pCurrentConfig->Ns->Next)
2557 if (!
This->pCurrentConfig->Ns->Next)
2560 This->pCurrentConfig->Ns->Next->IpAddress = dwIpAddr;
2564 This->pCurrentConfig->Ns->Next->IpAddress = dwIpAddr;
2569 if (
This->pCurrentConfig->Ns &&
This->pCurrentConfig->Ns->Next)
2571 if (
This->pCurrentConfig->Ns->Next->Next)
2573 IP_ADDR *pTemp =
This->pCurrentConfig->Ns->Next->Next;
2575 This->pCurrentConfig->Ns->Next = pTemp;
2580 This->pCurrentConfig->Ns->Next =
NULL;
2587 This->pCurrentConfig->DnsDhcpEnabled =
TRUE;
2590 if (
This->pCurrentConfig->Ns)
2592 IP_ADDR * pNextNs =
This->pCurrentConfig->Ns->Next;
2594 This->pCurrentConfig->Ns = pNextNs;
2643 if (pCurSettings->
Ip)
2669 if (pCurSettings->
Ns)
2672 if (pCurSettings->
Ns->
Next)
2726 if (szMetric && szMetric[0] !=
L'\0')
2729 szMetric +=
wcslen(szMetric) + 1;
2739 pCurrent = pCurrent->
Next;
2769 if (
This->pCurrentConfig)
2869 if (pFilter ==
NULL)
2903 if (pSettings ==
NULL)
2907 while (pSettings->
Ip)
2909 NextIp = pSettings->
Ip->
Next;
2911 pSettings->
Ip = NextIp;
2915 while (pSettings->
Ns)
2917 NextIp = pSettings->
Ns->
Next;
2919 pSettings->
Ns = NextIp;
2923 while (pSettings->
Gw)
2925 NextIp = pSettings->
Gw->
Next;
2927 pSettings->
Gw = NextIp;
2935 if (pSettings->
pDNS)
2949 INetCfgComponentPropertyUi *iface,
2953 TRACE(
"INetCfgComponentPropertyUi_fnQueryInterface()\n");
2961 INetCfgComponentPropertyUi *iface)
2963 TRACE(
"INetCfgComponentPropertyUi_fnAddRef()\n");
2971 INetCfgComponentPropertyUi *iface)
2973 TRACE(
"INetCfgComponentPropertyUi_fnRelease()\n");
2981 INetCfgComponentPropertyUi * iface,
2984 TRACE(
"INetCfgComponentPropertyUi_fnQueryPropertyUi()\n");
2986 INetLanConnectionUiInfo * pLanInfo;
3005 INetCfgComponentPropertyUi * iface,
3008 TRACE(
"INetCfgComponentPropertyUi_fnSetContext()\n");
3025 HKEY hInterfaceKey, hConfigKey;
3026 WCHAR szBuffer[200];
3045 _swprintf(szBuffer,
L"SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\\Interfaces\\%s", pAdapterName);
3062 _swprintf(szBuffer,
L"SYSTEM\\CurrentControlSet\\Services\\DHCP\\Configurations\\Alternate_%s", pAdapterName);
3082 WCHAR szBuffer[200];
3092 _swprintf(szBuffer,
L"SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\\Interfaces\\%s", pAdapterName);
3128 pSettings->
pDNS = pDNS;
3162 WCHAR szBuffer[200];
3183 _swprintf(szBuffer,
L"SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\\Interfaces\\%s", pAdapterName);
3212 if (
This->pCurrentConfig)
3240 pCurrentAdapter = pInfo;
3242 while(pCurrentAdapter)
3244 szBuffer[0] =
L'\0';
3247 szBuffer[(
sizeof(szBuffer)/
sizeof(
WCHAR))-1] =
L'\0';
3249 if (!
_wcsicmp(szBuffer, pAdapterName))
3254 pCurrentAdapter = pCurrentAdapter->
Next;
3271 if (pPerAdapterInfo)
3279 if (!pCurrentConfig)
3321 if (pPerAdapterInfo)
3339 This->pCurrentConfig = pCurrentConfig;
3340 This->pOldConfig = pOldConfig;
3349 INetCfgComponentPropertyUi * iface,
3351 BYTE **pahpspPrivate,
3356 TRACE(
"INetCfgComponentPropertyUi_fnMergePropPages()\n");
3361 if (
This->pCurrentConfig->DhcpEnabled)
3387 *pahpspPrivate = (
BYTE*)hppages;
3388 *pcPages = NumPages;
3396 INetCfgComponentPropertyUi * iface,
3399 TRACE(
"INetCfgComponentPropertyUi_fnValidateProperties()\n");
3406 INetCfgComponentPropertyUi * iface)
3408 TRACE(
"INetCfgComponentPropertyUi_fnApplyProperties()\n");
3415 INetCfgComponentPropertyUi * iface)
3417 TRACE(
"INetCfgComponentPropertyUi_fnCancelProperties()\n");
3441 INetCfgComponentControl *iface,
3445 TRACE(
"INetCfgComponentControl_fnQueryInterface()\n");
3459 *ppvObj = (
LPVOID*)&
This->lpVtblCompPropertyUi;
3476 INetCfgComponentControl *iface)
3478 TRACE(
"INetCfgComponentControl_fnAddRef()\n");
3488 INetCfgComponentControl *iface)
3490 TRACE(
"INetCfgComponentControl_fnRelease()\n");
3496 if (
This->pCurrentConfig)
3498 if (
This->pOldConfig)
3508 INetCfgComponentControl *iface,
3509 INetCfgComponent *pIComp,
3513 TRACE(
"INetCfgComponentControl_fnInitialize()\n");
3517 This->pNCfg = pINetCfg;
3518 This->pNComp = pIComp;
3523 ERR(
"INetCfgComponentControl_fnInitialize failed\n");
3527 TRACE(
"INetCfgComponentControl_fnInitialize success\n");
3562 pTemp = pTemp->
Next;
3602 pStr +=
wcslen(pStr) + 1;
3604 pTemp = pTemp->
Next;
3615 INetCfgComponentControl * iface)
3620 WCHAR szBuffer[200];
3623 TRACE(
"INetCfgComponentControl_fnApplyRegistryChanges()\n");
3627 pCurrentConfig =
This->pCurrentConfig;
3628 pOldConfig =
This->pOldConfig;
3632 if (pCurrentConfig->
pDNS)
3651 _swprintf(szBuffer,
L"SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\\Interfaces\\%s", pAdapterName);
3655 if (pCurrentConfig->
Metric)
3660 if (pCurrentConfig->
pDNS)
3713 if (pCurrentConfig->
Gw)
3735 if (!pCurrentConfig->
Ns)
3765 _swprintf(pStr,
L"Alternate_%s", pAdapterName);
3770 _swprintf(szBuffer,
L"SYSTEM\\CurrentControlSet\\Services\\DHCP\\Configurations\\Alternate_%s", pAdapterName);
3790 INetCfgComponentControl *iface,
3791 INetCfgPnpReconfigCallback *pICallback)
3796 DWORD DhcpApiVersion;
3799 TRACE(
"INetCfgComponentControl_fnApplyPnpChanges()\n");
3808 pCurrentConfig =
This->pCurrentConfig;
3809 pOldConfig =
This->pOldConfig;
3824 if (pIpForwardTable)
3863 pCurrentConfig->
Index,
3874 if (pIpForwardTable)
3892 if (pCurrentConfig->
Gw)
3914 (pFunc)(pAdapterName);
3926 INetCfgComponentControl * iface)
3928 TRACE(
"INetCfgComponentControl_fnCancelChanges()\n");
3951 INetCfgComponentSetup *iface,
3955 TRACE(
"INetCfgComponentSetup_fnQueryInterface()\n");
3963 INetCfgComponentSetup *iface)
3965 TRACE(
"INetCfgComponentSetup_fnAddRef()\n");
3973 INetCfgComponentSetup *iface)
3975 TRACE(
"INetCfgComponentSetup_fnRelease()\n");
3983 INetCfgComponentSetup *iface,
3986 TRACE(
"INetCfgComponentSetup_fnInstall()\n");
3993 INetCfgComponentSetup *iface,
3995 DWORD dwUpgradeFromBuildNo)
3997 TRACE(
"INetCfgComponentSetup_fnUpgrade()\n");
4004 INetCfgComponentSetup *iface,
4008 TRACE(
"INetCfgComponentSetup_fnReadAnswerFile()\n");
4015 INetCfgComponentSetup *iface)
4017 TRACE(
"INetCfgComponentSetup_fnRemoving()\n");
#define InterlockedIncrement
#define InterlockedDecrement
static void AddButton(HWND hwndToolBar, int nImage, int nCommand)
#define RegCloseKey(hKey)
#define ERROR_INSUFFICIENT_BUFFER
DWORD APIENTRY DhcpCApiInitialize(_Out_ LPDWORD Version)
DWORD APIENTRY DhcpStaticRefreshParams(DWORD AdapterIndex, DWORD Address, DWORD Netmask)
VOID APIENTRY DhcpCApiCleanup(VOID)
LONG WINAPI RegCreateKeyExW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ DWORD Reserved, _In_opt_ LPWSTR lpClass, _In_ DWORD dwOptions, _In_ REGSAM samDesired, _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, _Out_ PHKEY phkResult, _Out_opt_ LPDWORD lpdwDisposition)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
LONG WINAPI RegDeleteValueW(HKEY hKey, LPCWSTR lpValueName)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
HRESULT WINAPI StringFromCLSID(REFCLSID clsid, LPOLESTR *str)
HPROPSHEETPAGE WINAPI CreatePropertySheetPageW(LPCPROPSHEETPAGEW lpPropSheetPage)
INT_PTR WINAPI PropertySheetW(LPCPROPSHEETHEADERW lppsh)
BOOL WINAPI DestroyPropertySheetPage(HPROPSHEETPAGE hPropPage)
#define GetProcAddress(x, y)
#define MultiByteToWideChar
_ACRTIMP int __cdecl _wtoi(const wchar_t *)
_ACRTIMP int __cdecl _wcsicmp(const wchar_t *, const wchar_t *)
_ACRTIMP size_t __cdecl wcslen(const wchar_t *)
int WINAPIV _swprintf(wchar_t *str, const wchar_t *format,...)
HINSTANCE netcfgx_hInstance
#define IDS_TCPFILTERDESC
#define IDS_DISABLE_FILTER
#define IDD_TCPIP_ADVOPT_DLG
#define IDC_DNSSUFFIXLIST
#define IDD_TCPIPADDIP_DLG
#define IDC_DNSSUFFIXDOWN
#define IDD_TCPIP_ALTCF_DLG
#define IDD_TCPIP_FILTER_DLG
#define IDD_TCPIP_ADVIP_DLG
#define IDS_DOMAIN_SUFFIX
#define IDC_UDP_ALLOW_ALL
#define IDC_TCP_ALLOW_ALL
#define IDS_NO_SUBMASK_SET
#define IDD_TCPIP_BASIC_DLG
#define IDD_TCPIPSUFFIX_DLG
#define IDD_TCPIP_ADVDNS_DLG
#define IDC_ALTSUBNETMASK
#define IDS_NO_IPADDR_SET
#define IDC_TOPPRIMSUFFIX
#define IDD_TCPIP_PORT_DLG
#define IDC_ALTDEFGATEWAY
PWDF_CHILD_ADDRESS_DESCRIPTION_HEADER pAddr
DWORD WINAPI AddIPAddress(IPAddr Address, IPMask Netmask, DWORD IfIndex, PULONG NteContext, PULONG NteInstance)
DWORD WINAPI GetIpForwardTable(PMIB_IPFORWARDTABLE pIpForwardTable, PULONG pdwSize, BOOL bOrder)
DWORD WINAPI DeleteIpForwardEntry(PMIB_IPFORWARDROW pRoute)
DWORD WINAPI GetAdaptersInfo(PIP_ADAPTER_INFO pAdapterInfo, PULONG pOutBufLen)
DWORD WINAPI GetPerAdapterInfo(ULONG IfIndex, PIP_PER_ADAPTER_INFO pPerAdapterInfo, PULONG pOutBufLen)
DWORD WINAPI CreateIpForwardEntry(PMIB_IPFORWARDROW pRoute)
DWORD WINAPI DeleteIPAddress(ULONG NTEContext)
struct _MIB_IPFORWARDTABLE * PMIB_IPFORWARDTABLE
#define RtlEqualMemory(dst, src, len)
TCHAR szTitle[MAX_LOADSTRING]
void *WINAPI CoTaskMemAlloc(SIZE_T size)
void WINAPI CoTaskMemFree(void *ptr)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
struct _PSP * HPROPSHEETPAGE
EXTERN_C const IID IID_INetCfgComponentPropertyUi
EXTERN_C const IID IID_INetCfgComponentControl
EXTERN_C const IID IID_INetLanConnectionUiInfo
#define INetCfgComponentControl_QueryInterface(p, a, b)
#define INetCfgComponentControl_Release(p)
EXTERN_C const IID IID_INetCfgComponentSetup
#define INetCfgComponentControl_AddRef(p)
#define INetLanConnectionUiInfo_GetDeviceGuid(p, a)
_In_ ULONG _In_ ULONG _In_ ULONG Length
static const WCHAR szName[]
#define PropSheet_Changed(d, w)
struct _PROPSHEETPAGEW PROPSHEETPAGEW
struct _PROPSHEETHEADERW PROPSHEETHEADERW
struct _PSHNOTIFY * LPPSHNOTIFY
#define FOURTH_IPADDRESS(x)
struct tagNMIPADDRESS * LPNMIPADDRESS
#define MAKEIPADDRESS(b1, b2, b3, b4)
#define FIRST_IPADDRESS(x)
#define MAKEIPRANGE(low, high)
#define ListView_GetItemCount(hwnd)
#define SECOND_IPADDRESS(x)
struct tagNMLISTVIEW * LPNMLISTVIEW
#define LVM_INSERTCOLUMNW
#define THIRD_IPADDRESS(x)
#define ListView_DeleteItem(hwnd, i)
#define IsEqualIID(riid1, riid2)
IP_PER_ADAPTER_INFO_W2KSP1 * PIP_PER_ADAPTER_INFO
DWORD EnableSecurityFilters
LPWSTR szRawIPAllowedProtocols
DWORD RegistrationEnabled
DWORD UseDomainNameDevolution
DWORD RegisterAdapterName
INetCfgComponent * pNComp
const INetCfgComponentControl * lpVtbl
const INetCfgComponentSetup * lpVtblCompSetup
const INetCfgComponentPropertyUi * lpVtblCompPropertyUi
TcpipSettings * pOldConfig
TcpipSettings * pCurrentConfig
AlternateConfiguration AltConfig
TcpipAdvancedDNSDlgSettings * pDNS
TcpFilterSettings * pFilter
struct _IP_ADAPTER_INFO * Next
IP_ADDR_STRING IpAddressList
char AdapterName[MAX_ADAPTER_NAME_LENGTH+4]
IP_ADDR_STRING GatewayList
struct _IP_ADDR_STRING * Next
IP_ADDRESS_STRING IpAddress
IP_ADDR_STRING DnsServerList
IF_INDEX dwForwardIfIndex
MIB_IPFORWARDROW table[1]
struct _SINGLE_LIST_ENTRY * Next
INT_PTR CALLBACK TcpipFilterSettingsDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
HPROPSHEETPAGE InitializePropertySheetPage(LPWSTR resname, DLGPROC dlgproc, LPARAM lParam, LPWSTR szTitle)
HRESULT WINAPI INetCfgComponentPropertyUi_fnCancelProperties(INetCfgComponentPropertyUi *iface)
HRESULT InitializeTcpipBasicDlgCtrls(HWND hwndDlg, TcpipSettings *pCurSettings)
struct tagIP_ADDR IP_ADDR
HRESULT CopyIpAddrString(IP_ADDR_STRING *pSrc, IP_ADDR **pTarget, COPY_TYPE Type, LPWSTR szMetric)
HRESULT WINAPI INetCfgComponentPropertyUi_fnMergePropPages(INetCfgComponentPropertyUi *iface, DWORD *pdwDefPages, BYTE **pahpspPrivate, UINT *pcPages, HWND hwndParent, LPCWSTR *pszStartPage)
UINT GetIpAddressFromStringW(WCHAR *szBuffer)
VOID DisplayError(UINT ResTxt, UINT ResTitle, UINT Type)
VOID InitializeTcpipAdvancedIpDlg(HWND hwndDlg, TcpipConfNotifyImpl *This)
HRESULT WINAPI INetCfgComponentControl_fnQueryInterface(INetCfgComponentControl *iface, REFIID iid, LPVOID *ppvObj)
VOID FreeDNSSettings(TcpipAdvancedDNSDlgSettings *pDNS)
VOID FreeIPAddr(IP_ADDR *pAddr)
LPWSTR LoadTcpFilterSettingsFromRegistry(HKEY hKey, LPCWSTR szName, LPDWORD Size)
HRESULT LoadDNSSettings(TcpipSettings *pSettings, LPOLESTR pAdapterName)
VOID InsertIpAddressToListView(HWND hDlgCtrl, IP_ADDR *pAddr, BOOL bSubMask)
VOID StoreIPSettings(HWND hDlgCtrl, TcpipConfNotifyImpl *This, BOOL bSubmask)
VOID LaunchAdvancedTcpipSettings(HWND hwndDlg, TcpipConfNotifyImpl *This)
LPWSTR CreateFilterList(HWND hDlgCtrl, LPDWORD Size)
HRESULT LoadFilterSettings(TcpipSettings *pSettings, LPOLESTR pAdapterName)
VOID DeleteItemFromList(HWND hDlgCtrl)
BOOL GetGWListEntry(HWND hDlgCtrl, INT Index, TcpipGwSettings *pGwSettings)
static int CALLBACK PropSheetProc(HWND hwndDlg, UINT uMsg, LPARAM lParam)
VOID AddAlternativeDialog(HWND hDlg, TcpipConfNotifyImpl *This)
HRESULT WINAPI INetCfgComponentPropertyUi_fnQueryPropertyUi(INetCfgComponentPropertyUi *iface, IUnknown *pUnkReserved)
static VOID DelItem(HWND hDlgCtrl)
ULONG WINAPI INetCfgComponentSetup_fnAddRef(INetCfgComponentSetup *iface)
UINT GetIpAddressFromStringA(char *sBuffer)
INT_PTR CALLBACK TcpipAdvancedDnsDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
HRESULT WINAPI INetCfgComponentControl_fnCancelChanges(INetCfgComponentControl *iface)
HRESULT WINAPI INetCfgComponentSetup_fnInstall(INetCfgComponentSetup *iface, DWORD dwSetupFlags)
HRESULT WINAPI INetCfgComponentControl_fnInitialize(INetCfgComponentControl *iface, INetCfgComponent *pIComp, INetCfg *pINetCfg, BOOL fInstalling)
BOOL VerifyDNSSuffix(LPWSTR szName)
VOID InsertColumnToListView(HWND hDlgCtrl, UINT ResId, UINT SubItem, UINT Size)
VOID MoveItem(HWND hDlgCtrl, INT pos)
HRESULT WINAPI INetCfgComponentControl_fnApplyPnpChanges(INetCfgComponentControl *iface, INetCfgPnpReconfigCallback *pICallback)
INT GetSelectedItem(HWND hDlgCtrl)
HRESULT WINAPI INetCfgComponentSetup_fnUpgrade(INetCfgComponentSetup *iface, DWORD dwSetupFlags, DWORD dwUpgradeFromBuildNo)
HRESULT WINAPI INetCfgComponentSetup_fnRemoving(INetCfgComponentSetup *iface)
ULONG WINAPI INetCfgComponentPropertyUi_fnAddRef(INetCfgComponentPropertyUi *iface)
INT_PTR CALLBACK TcpipFilterPortDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
TcpFilterSettings * StoreTcpipFilterSettings(HWND hwndDlg)
DWORD(WINAPI * PDHCPFALLBACKREFRESHPARAMS)(PWSTR pAdapterName)
ULONG WINAPI INetCfgComponentSetup_fnRelease(INetCfgComponentSetup *iface)
BOOL GetListViewItem(HWND hDlgCtrl, UINT Index, UINT SubIndex, WCHAR *szBuffer, UINT BufferSize)
HRESULT WINAPI INetCfgComponentPropertyUi_fnApplyProperties(INetCfgComponentPropertyUi *iface)
HRESULT WINAPI INetCfgComponentPropertyUi_fnSetContext(INetCfgComponentPropertyUi *iface, IUnknown *pUnkReserved)
VOID RemoveItem(HWND hDlgCtrl)
static LPWSTR CreateMultiSzString(IP_ADDR *pAddr, COPY_TYPE Type, LPDWORD Size, BOOL bComma)
INT_PTR CALLBACK TcpipAddSuffixDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
INT_PTR CALLBACK TcpipAdvancedOptDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
INT_PTR StoreTcpipBasicSettings(HWND hwndDlg, TcpipConfNotifyImpl *This, BOOL bApply)
HRESULT WINAPI INetCfgComponentPropertyUi_fnValidateProperties(INetCfgComponentPropertyUi *iface, HWND hwndDlg)
HRESULT WINAPI INetCfgComponentPropertyUi_fnQueryInterface(INetCfgComponentPropertyUi *iface, REFIID iid, LPVOID *ppvObj)
ULONG WINAPI INetCfgComponentPropertyUi_fnRelease(INetCfgComponentPropertyUi *iface)
HRESULT LoadTcpIpSettings(TcpipSettings *pSettings, LPOLESTR pAdapterName, IP_ADAPTER_INFO *pAdapterInfo, IP_PER_ADAPTER_INFO *pPerAdapterInfo)
HRESULT WINAPI INetCfgComponentSetup_fnReadAnswerFile(INetCfgComponentSetup *iface, LPCWSTR pszwAnswerFile, LPCWSTR pszwAnswerSections)
HRESULT InitializeTcpipAltDlgCtrls(HWND hwndDlg, TcpipSettings *pCurSettings)
static const INetCfgComponentSetupVtbl vt_NetCfgComponentSetup
VOID FreeFilterSettings(TcpFilterSettings *pFilter)
static const INetCfgComponentControlVtbl vt_NetCfgComponentControl
VOID InitializeTcpipAdvancedDNSDlg(HWND hwndDlg, TcpipConfNotifyImpl *This)
INT_PTR CALLBACK TcpipAdvancedIpDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
INT_PTR StoreTcpipAlternateSettings(HWND hwndDlg, TcpipConfNotifyImpl *This, BOOL bApply)
VOID InitFilterListBox(LPWSTR pData, HWND hwndDlg, HWND hDlgCtrl, UINT AllowButton, UINT RestrictButton, UINT AddButton, UINT DelButton)
VOID StoreDNSSettings(HWND hDlgCtrl, TcpipConfNotifyImpl *This)
INT_PTR CALLBACK TcpipAltConfDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
VOID ToggleUpDown(HWND hwndDlg, HWND hDlgCtrl, UINT UpButton, UINT DownButton, UINT ModButton, UINT DelButton)
HRESULT WINAPI INetCfgComponentSetup_fnQueryInterface(INetCfgComponentSetup *iface, REFIID iid, LPVOID *ppvObj)
INT_PTR CALLBACK TcpipAddDNSDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
VOID InitializeTcpipAdvancedOptDlg(HWND hwndDlg, TcpipConfNotifyImpl *This)
static const INetCfgComponentPropertyUiVtbl vt_NetCfgComponentPropertyUi
ULONG WINAPI INetCfgComponentControl_fnRelease(INetCfgComponentControl *iface)
static __inline LPTcpipConfNotifyImpl impl_from_INetCfgComponentSetup(INetCfgComponentSetup *iface)
INT_PTR CALLBACK TcpipAddIpDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
HRESULT WINAPI TcpipConfigNotify_Constructor(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
ULONG WINAPI INetCfgComponentControl_fnAddRef(INetCfgComponentControl *iface)
HRESULT WINAPI INetCfgComponentControl_fnApplyRegistryChanges(INetCfgComponentControl *iface)
VOID FreeSettings(TcpipSettings *pSettings)
LPWSTR GetListViewEntries(HWND hDlgCtrl)
BOOL GetIPListEntry(HWND hDlgCtrl, INT Index, TcpipIpSettings *pIpSettings)
INT_PTR CALLBACK TcpipAdvGwDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
INT_PTR CALLBACK TcpipBasicDlg(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static __inline LPTcpipConfNotifyImpl impl_from_INetCfgComponentPropertyUi(INetCfgComponentPropertyUi *iface)
struct TcpipConfNotifyImpl * LPTcpipConfNotifyImpl
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
#define FIELD_OFFSET(t, f)
_In_ WDFCOLLECTION _In_ ULONG Index
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
int WINAPI GetWindowTextW(HWND hWnd, LPWSTR lpString, int nMaxCount)
#define ERROR_BUFFER_OVERFLOW
#define HKEY_LOCAL_MACHINE
BOOL WINAPI CheckDlgButton(_In_ HWND, _In_ int, _In_ UINT)
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
LRESULT WINAPI SendDlgItemMessageW(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
UINT WINAPI IsDlgButtonChecked(_In_ HWND, _In_ int)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI SetDlgItemInt(_In_ HWND, _In_ int, _In_ UINT, _In_ BOOL)
HWND WINAPI SetFocus(_In_opt_ HWND)
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
HWND WINAPI GetParent(_In_ HWND)
BOOL WINAPI CheckRadioButton(_In_ HWND, _In_ int, _In_ int, _In_ int)
#define MB_ICONINFORMATION
UINT WINAPI GetDlgItemInt(_In_ HWND, _In_ int, _Out_opt_ PBOOL, _In_ BOOL)
#define MAKEINTRESOURCEW(i)
#define SendDlgItemMessage
LRESULT WINAPI SendDlgItemMessageA(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
HICON WINAPI LoadIconW(_In_opt_ HINSTANCE hInstance, _In_ LPCWSTR lpIconName)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)