HostDnsServiceWin.cpp revision 9f52526783f7b74ada6fcc1d8ba7916c6a144783
/* -*- indent-tabs-mode: nil; -*- */
#include <Windows.h>
#include <string>
#include <vector>
#include "../HostDnsService.h"
static HKEY g_hKeyTcpipParameters;
{
TEXT("SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters"),
0, KEY_READ, &g_hKeyTcpipParameters);
}
{
if (!g_hKeyTcpipParameters)
{
}
}
{
return updateInfo();
}
{
regIndex = 0;
do {
if ( hrc == ERROR_SUCCESS
|| hrc == ERROR_MORE_DATA)
{
&& cbKeyData > 1
&& cbKeyData > 1
&& abDomain[0] == 0
&& cbKeyData > 1
&& cbKeyData < sizeof(abNameServers))
&& cbKeyData > 1
&& abNameServers[0] == 0
&& cbKeyData < sizeof(abNameServers))
&& cbKeyData > 1
&& cbKeyData < sizeof(abSearchList))
}
regIndex++;
} while (hrc != ERROR_NO_MORE_ITEMS);
/* OK, now parse and update DNS structures. */
/* domain name */
/* server list */
/* search list */
return S_OK;
}
{
char address[512];
return;
do {
if (next)
else
} while(next);
}