Comment on page
wcscmp
Description of the 'wcscmp' function in HyperDbg Scripts
wcscmp
wcscmp( WStr1, WStr2 );
[WStr1]
[WStr2]
Compares the wide-character string WStr1 to the wide-character string WStr2.
Wide-character strings are started with an L character before the quotations. For example L"This is a wide-character string".
Returns an integer value indicating the relationship between the strings:
Return Value | Indicates |
---|---|
<0 | The first wide-character that does not match has a lower value in WStr1 than in WStr2. |
0 | The contents of both wide-character strings are equal. |
>0 | The first wide-character that does not match has a greater value in WStr1 than in WStr2. |
wcscmp(fffff806`6de00000, @rax+c0);
Compare the wide-character string located at
fffff806`6de00000
with the wide-character string located at @rax+c0
.wcscmp(@rcx, L"Test WString");
Compare the wide-character string located at
@rcx
with the wide-character string L"Test WString"
.wcscmp(L"Test WString1", L"Test WString2");
Compare the wide-character string
L"Test WString1"
with the wide-character string L"Test WString2"
.This function checks for the validity of both the source and the destination address before the comparison.
The support for this function is added from v0.7.
Last modified 20d ago