首页
社区
课程
招聘
[求助]新人遇到一段算法。看不懂那个函数:StrToIntEx
发表于: 2005-12-31 05:46 6062

[求助]新人遇到一段算法。看不懂那个函数:StrToIntEx

2005-12-31 05:46
6062
新手跟某个软件算法跟到
以下是最后一段:
00407605     52                      push edx
00407606     6A 01                   push 1
00407608     50                      push eax
00407609     FF15 98B45100           call dword ptr ds:[<&SHLWAPI.StrToIntExA>]   ; SHLWAPI.StrToIntExA
0040760F     85C0                    test eax,eax
00407611     74 1B                   je short TDAdmin.0040762E 一跳就完
堆栈:
001269D4    00126A18  |String = "0X铑铑铑铑"
001269D8    00000001  |Flags = STIF_SUPPORT_HEX
001269DC    001269EC  \pInt = 001269EC

关于strtointex这个很迷惑 C语言不好。请大大解说一下

[培训]科锐软件逆向54期预科班、正式班开始火爆招生报名啦!!!

收藏
免费 0
支持
分享
最新回复 (5)
雪    币: 212
活跃值: (40)
能力值: ( LV4,RANK:50 )
在线值:
发帖
回帖
粉丝
2
好像一个将字符型转整型的函数
2005-12-31 08:21
0
雪    币: 205
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
是的。但不知道具体是干什么的。网上也找不到相关的。可能我笨。找不到。

所以请教来了。
2005-12-31 08:25
0
雪    币: 207
活跃值: (40)
能力值: ( LV4,RANK:50 )
在线值:
发帖
回帖
粉丝
4
MSDN

StrToIntEx Function

--------------------------------------------------------------------------------

Converts a string representing a decimal or hexadecimal number to an integer.

Syntax

BOOL StrToIntEx(          LPCTSTR pszString,
    DWORD dwFlags,
    int *piRet
);
Parameters

pszString
[in] Pointer to the null-terminated string to be converted. For further details concerning the valid forms of the string, see the Remarks section.
dwFlags
[in] One of the following values specifying how pszString should be parsed for its conversion to an integer.
STIF_DEFAULT
The string at pszString contains the representation of a decimal value.
STIF_SUPPORT_HEX
The string at pszString contains the representation of either a decimal or hexadecimal value. Note that in hexadecimal representations, the characters A-F are case-insensitive.
piRet
[out] Pointer to a variable of type int that receives the integer value of the converted string. For instance, in the case of the string "123", the integer pointed to by this value receives the integer value 123.
If this function returns FALSE, this value is undefined.

If the value returned is too large to be contained in a variable of type int, this parameter contains the 32 low-order bits of the value. Any high-order bits beyond that are lost.

Return Value

Returns TRUE if the string is converted, or FALSE otherwise.
2005-12-31 08:53
0
雪    币: 205
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
5
请否译一下。晕。
2005-12-31 09:03
0
雪    币: 212
活跃值: (40)
能力值: ( LV4,RANK:50 )
在线值:
发帖
回帖
粉丝
6
看EAX里是什么,他会这个值转为整型的值
2005-12-31 10:10
0
游客
登录 | 注册 方可回帖
返回