我可以从DHCP客户端获取DHCP租约时间信息吗?如果是,我如何在Win7上进行操作?
我在谷歌搜索了很多没有成功的答案。
答案 0 :(得分:1)
GetAdaptersInfo
和IP_ADAPTER_INFO.LeaseExpires
:
LeaseObtained
Type: time_t The time when the current DHCP lease was obtained. This member is only valid when the DhcpEnabled member is nonzero.
LeaseExpires
Type: time_t The time when the current DHCP lease expires. This member is only valid when the DhcpEnabled member is nonzero.