首页
社区
课程
招聘
下断GETLOCALTIME返回代码,请帮我解释一下。
发表于: 2005-6-4 18:06 4599

下断GETLOCALTIME返回代码,请帮我解释一下。

2005-6-4 18:06
4599
10BAF6A8  |.  FF15 80D3DB10 call dword ptr ds:[<&KERNEL32.GetLocalTime>]                ; \GetLocalTime
10BAF6AE      8B4424 18     mov eax,dword ptr ss:[esp+18]
10BAF6B2      8A4C24 0C     mov cl,byte ptr ss:[esp+C]
10BAF6B6  |.  8A5424 0A     mov dl,byte ptr ss:[esp+A]
10BAF6BA  |.  8848 0A       mov byte ptr ds:[eax+A],cl
10BAF6BD  |.  8A4C24 08     mov cl,byte ptr ss:[esp+8]
10BAF6C1  |.  8848 08       mov byte ptr ds:[eax+8],cl
10BAF6C4  |.  8B4C24 0E     mov ecx,dword ptr ss:[esp+E]
10BAF6C8      81E1 FFFF0000 and ecx,0FFFF
10BAF6CE  |.  8850 09       mov byte ptr ds:[eax+9],dl
10BAF6D1  |.  8D0C89        lea ecx,dword ptr ds:[ecx+ecx*4]
10BAF6D4  |.  8D0C89        lea ecx,dword ptr ds:[ecx+ecx*4]
10BAF6D7  |.  8D1489        lea edx,dword ptr ds:[ecx+ecx*4]
10BAF6DA  |.  8A4C24 06     mov cl,byte ptr ss:[esp+6]
10BAF6DE      C1E2 03       shl edx,3
10BAF6E1  |.  8910          mov dword ptr ds:[eax],edx
10BAF6E3  |.  8A5424 02     mov dl,byte ptr ss:[esp+2]
10BAF6E7      8848 07       mov byte ptr ds:[eax+7],cl
10BAF6EA  |.  8B4C24 00     mov ecx,dword ptr ss:[esp]
10BAF6EE      FECA          dec dl
10BAF6F0      81C1 94F8FFFF add ecx,-76C
10BAF6F6      8850 06       mov byte ptr ds:[eax+6],dl
10BAF6F9      66:8948 04    mov word ptr ds:[eax+4],cx
10BAF6FD      83C4 14       add esp,14
10BAF700      C2 0400       retn 4
10BAF703      90            nop

下断GetLocalTime alt+F9返回到这里 请大家帮我看看着段代码什么意思 谢谢

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 0
支持
分享
最新回复 (2)
雪    币: 58782
活跃值: (21961)
能力值: (RANK:350 )
在线值:
发帖
回帖
粉丝
2
建议查查API手册了解一下GetLocalTime 定义,你就会发现这段代码是对取的时间参数进行处理:

The GetLocalTime function retrieves the current local date and time.

VOID GetLocalTime(

    LPSYSTEMTIME lpSystemTime         // address of system time structure  
   );       

Parameters

lpSystemTime

Points to a SYSTEMTIME structure to receive the current local date and time.

Return Values

This function does not return a value.

The SYSTEMTIME structure represents a date and time using individual members for the month, day, year, weekday, hour, minute, second, and millisecond.

typedef struct _SYSTEMTIME {  // st  
    WORD wYear;
    WORD wMonth;
    WORD wDayOfWeek;
    WORD wDay;
    WORD wHour;
    WORD wMinute;
    WORD wSecond;
    WORD wMilliseconds;
} SYSTEMTIME;

Members

wYear

Specifies the current year.

wMonth

Specifies the current month; January = 1, February = 2, and so on.

wDayOfWeek

Specifies the current day of the week; Sunday = 0, Monday = 1, and so on.

wDay

Specifies the current day of the month.

wHour

Specifies the current hour.

wMinute

Specifies the current minute.

wSecond

Specifies the current second.

wMilliseconds

Specifies the current millisecond.
2005-6-4 18:56
0
雪    币: 3134
活跃值: (2018)
能力值: ( LV9,RANK:850 )
在线值:
发帖
回帖
粉丝
3
看雪回答问题真详细!!!!各位大侠要多向坛主学习回答问题的态度!!!
2005-6-14 09:40
0
游客
登录 | 注册 方可回帖
返回