| View previous topic :: View next topic |
| Author |
Message |
Freiza Grandmaster Cheater
Reputation: 22
Joined: 28 Jun 2010 Posts: 662
|
Posted: Wed Apr 18, 2012 12:31 pm Post subject: How to define Unicode string in AA? |
|
|
I want to call MessageBoxW in AA.
How to do it?
@DarkByte:
Cursor is not positioning inside the window. Why? (In my last message) _________________
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Apr 18, 2012 2:38 pm Post subject: |
|
|
Just pad the string with 00s between each char:
| Code: |
alloc(threadMem,1024);
alloc(bufferMem,1024);
createthread(threadMem);
bufferMem:
db 68 00 65 00 6c 00 6c 00 6f 00 20 00 77 00 6f 00 72 00 6c 00 64 00 00
threadMem:
lea eax, [bufferMem]
push 0
push eax
lea eax, [bufferMem]
push eax
push 0
call MessageBoxW
ret
|
_________________
- Retired. |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25837 Location: The netherlands
|
Posted: Wed Apr 18, 2012 2:41 pm Post subject: |
|
|
tip, ce can work with character and numbers at the same time
| Code: |
db 'b',0,'l',0',a',0,0
|
I prefer the use of "," but this works too:
| Code: |
db 'b' 0 'l' 0 'a' 0 0
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
|