flat assembler
Message board for the users of flat assembler.

Index > Windows > API problems

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
Ralph



Joined: 04 Oct 2003
Posts: 86
Ralph
I have never tried doing this under Windows 2000 or XP, but it has always worked for me on Win98 and NT4. Unless 2k made some modifications of the NT kernel in this area, I don't see why it shouldn't work.
Post 04 Dec 2003, 06:28
View user's profile Send private message Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv
Works in win2k.
Post 04 Dec 2003, 12:11
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
eet_1024



Joined: 22 Jul 2003
Posts: 59
eet_1024
Maybe I was thinking of trying to execute code out of the data section.

Well, if it works, it works.
Post 05 Dec 2003, 05:13
View user's profile Send private message Reply with quote
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY
And here is another example:
Code:
format PE GUI 4.0
include '%fasminc%\win32a.inc'
start:
call _smc
push 0
push ttl
spot:
push msg
endsp:
push 0
invoke MessageBox
invoke ExitProcess,0

_smc:
push esi edi
mov esi,_src
mov edi,spot
mov ecx,endsp-spot
rep movsb
pop edi esi
ret
_src: push msg2
msg db "I'm the first msg!",0
ttl db "SMC",0
msg2 db "I'm changed! LOL!",0

data import
library user32,'user32.dll',\
kernel32,'kernel32.dll'
include '%fasminc%\apia\user32.inc'
include '%fasminc%\apia\kernel32.inc'
end data
    


Works ok with WinXP and FASM 1.64.
Post 15 Sep 2005, 15:17
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.