我用GetSystemTime 得到的时间和任务栏里显示的时间在 wHour 上差距很大,这是为什么啊?
  向各位大侠请教!!!

解决方案 »

  1.   

    用SystemTimeToTzSpecificLocalTime这个函数即可
      

  2.   

    The GetSystemTime function retrieves the current system date and time. The system time is expressed in Coordinated Universal Time (UTC). Use GetLocalTime
    The GetLocalTime function retrieves the current local date and time. 
      

  3.   

    系统计时
    精度级别
    timer控件
    多媒体计数器
    高精度计数器  QueryPerformanceFrequency不知道你说的差距是什么,你可以把两个值都贴出来便于大家看
      

  4.   

    谢谢大家
        我说的差距是:通过getsystemtime 得到 20030616011554234,而本地时间是 20030616085823111,不知如何转换?
        shadowsky兄的方法我马上试一下!!!
      

  5.   

    getsystemtime返回实际是格林威治标准时间和本地时间是有一个时区误差的