Group: String - Library: shlwapi
OS version and revision
Converting a hexadecimal string to an integer
BOOL StrToIntEx(
LPCTSTR pszString,
DWORD dwFlags,
int FAR * piRet
);
DECLARE SHORT StrToIntEx IN Shlwapi;
STRING pszString,;
INTEGER dwFlags,;
INTEGER @ pllRet
pszString Address of a null-terminated string to be converted.
dwFlags Specifies if pszString contains a decimal or hexadecimal value.
piRet Address of an integer variable that receives the converted string.
Returns TRUE if the string is converted, or FALSE otherwise.
When using STIF_SUPPORT_HEX for a hexadecimal value, the string must be prefixed with "0x", as in hexadecimal values in C++. E.g. 0x800
See also: StrToInt, StrToInt64Ex.