示例#1
0
        /// <summary>
        /// 获取系统时间信息
        /// </summary>
        /// <returns>系统时间信息</returns>
        public static SystemTimeInfo GetSystemTimeInfo()
        {
            SystemTimeInfo systemTimeInfo = new SystemTimeInfo();

            GetSystemTime(ref systemTimeInfo);
            return(systemTimeInfo);
        }
示例#2
0
 /// <summary>
 /// 获取系统时间信息
 /// </summary>
 /// <returns>系统时间信息</returns>
 public static SystemTimeInfo GetSystemTimeInfo()
 {
     SystemTimeInfo systemTimeInfo = new SystemTimeInfo();
     GetSystemTime(ref systemTimeInfo);
     return systemTimeInfo;
 }
示例#3
0
 private static extern void GetSystemTime(ref SystemTimeInfo sysInfo);
示例#4
0
 private static extern void GetSystemTime(ref SystemTimeInfo sysInfo);