This source file includes following definitions.
- EnsureDhcpcsvcInit
#include "net/proxy/dhcpcsvc_init_win.h"
#include "base/lazy_instance.h"
#include "base/logging.h"
#include <dhcpcsdk.h>
#include <dhcpv6csdk.h>
namespace {
class DhcpcsvcInitSingleton {
public:
DhcpcsvcInitSingleton() {
DWORD version = 0;
DWORD err = DhcpCApiInitialize(&version);
DCHECK(err == ERROR_SUCCESS);
}
~DhcpcsvcInitSingleton() {
}
};
static base::LazyInstance<DhcpcsvcInitSingleton> g_dhcpcsvc_init_singleton =
LAZY_INSTANCE_INITIALIZER;
}
namespace net {
void EnsureDhcpcsvcInit() {
g_dhcpcsvc_init_singleton.Get();
}
}