HostDnsServiceWin.cpp revision 5218e94d899f948d3def7109e05a93fc6d590037
/* -*- indent-tabs-mode: nil; -*- */
#include "../HostDnsService.h"
#include <Windows.h>
static HKEY g_hKeyTcpipParameters;
{
TEXT("SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters"),
0, KEY_READ, &g_hKeyTcpipParameters);
}
{
if (!g_hKeyTcpipParameters)
{
}
}
{
return S_OK;
}
{
return S_OK;
}
void HostDnsServiceWin::stop(void)
{
}
{
regIndex = 0;
do {
if ( hrc == ERROR_SUCCESS
|| hrc == ERROR_MORE_DATA)
{
&& cbKeyData > 1
&& cbKeyData < 256)
&& cbKeyData > 1
&& abDomain[0] == 0
&& cbKeyData < 256)
&& cbKeyData > 1
&& cbKeyData < 256)
&& cbKeyData > 1
&& abNameServers[0] == 0
&& cbKeyData < 256)
&& cbKeyData > 1
&& cbKeyData < 256)
}
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);
}