Beispiel #1
0
        public static DATE_TIME ConvertDateTimeToNative(DhcpClient client)
        {
            DATE_TIME dTime = new DATE_TIME();

            dTime.dwHighDateTime = (uint)(client.ClientLeaseExpires.ToFileTime() >> 32);
            dTime.dwLowDateTime  = (uint)(client.ClientLeaseExpires.ToFileTime() + 0xFFFFFFFF);
            return(dTime);
        }
Beispiel #2
0
 public static DATE_TIME ConvertDateTimeToNative(DhcpClient client)
 {
     DATE_TIME dTime = new DATE_TIME();
     dTime.dwHighDateTime = (uint)(client.ClientLeaseExpires.ToFileTime() >> 32);
     dTime.dwLowDateTime = (uint)(client.ClientLeaseExpires.ToFileTime() + 0xFFFFFFFF);
     return dTime;
 }