OutFile "Test.exe"
ShowInstDetails show
Section
Push "测试x电影y下载2欢迎你5来了"
Call MultiByteCharFilter
Pop $0
DetailPrint "$0"
SectionEnd
Function MultiByteCharFilter
Exch $R0
Push $R1
Push $R2
Push $R3
System::Call '*(&w1024 R0)i.R1'
StrCpy $R2 $R1
StrCpy $R0 ""
loop:
System::Call '*$R2(&i1,&i1.R3)'
StrCmp $R3 0 0 +4
System::Call '*$R2(&w2.R3)'
StrCmp $R3 "" done
StrCpy $R0 $R0$R3
IntOp $R2 $R2 + 2
Goto loop
done:
System::Free $R1
Pop $R3
Pop $R2
Pop $R1
Exch $R0
FunctionEnd
ShowInstDetails show
Section
Push "测试x电影y下载2欢迎你5来了"
Call MultiByteCharFilter
Pop $0
DetailPrint "$0"
SectionEnd
Function MultiByteCharFilter
Exch $R0
Push $R1
Push $R2
Push $R3
System::Call '*(&w1024 R0)i.R1'
StrCpy $R2 $R1
StrCpy $R0 ""
loop:
System::Call '*$R2(&i1,&i1.R3)'
StrCmp $R3 0 0 +4
System::Call '*$R2(&w2.R3)'
StrCmp $R3 "" done
StrCpy $R0 $R0$R3
IntOp $R2 $R2 + 2
Goto loop
done:
System::Free $R1
Pop $R3
Pop $R2
Pop $R1
Exch $R0
FunctionEnd